mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
PY-44858 Move and other refactorings don't introduce __init__.py inside namespace packages
Namely, Move Module Members, Extract Superclass and Make Local Function Top-Level were all affected by this. Now we check if the refactoring origin is inside a namespace package to decide whether __init__.py should be generated for target directories. Co-authored-by: Kamalia <alishevakamalia@gmail.com> Co-authored-by: Maksim.Levitskii <maksim.levitskii@jetbrains.com> GitOrigin-RevId: b0b3420c5ec8d1f7d3000d8834211631690a0c42
This commit is contained in:
committed by
intellij-monorepo-bot
parent
128ac0ba66
commit
90bbc21f3f
@@ -0,0 +1,7 @@
|
||||
from b.suppa import Suppa
|
||||
|
||||
|
||||
class Foo(Suppa):
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Suppa:
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo:
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,7 @@
|
||||
from b.suppa import Suppa
|
||||
|
||||
|
||||
class Foo(Suppa):
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Suppa:
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo:
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,3 @@
|
||||
class Suppa:
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,7 @@
|
||||
from a.b.suppa import Suppa
|
||||
|
||||
|
||||
class Foo(Suppa):
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo:
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,7 @@
|
||||
from a.suppa import Suppa
|
||||
|
||||
|
||||
class Foo(Suppa):
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Suppa:
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo:
|
||||
def bar(self):
|
||||
print("foo")
|
||||
|
||||
def foo(self):
|
||||
print("bar")
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo:
|
||||
def bar(self):
|
||||
print "foo"
|
||||
|
||||
def foo(self):
|
||||
print "bar"
|
||||
@@ -0,0 +1,3 @@
|
||||
class Suppa:
|
||||
def foo(self):
|
||||
print "bar"
|
||||
@@ -0,0 +1,2 @@
|
||||
class A:
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def method():
|
||||
pass
|
||||
@@ -0,0 +1,3 @@
|
||||
class A:
|
||||
def me<caret>thod(self):
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def g():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def f():
|
||||
pass
|
||||
@@ -0,0 +1,3 @@
|
||||
def f():
|
||||
def <caret>g():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def f():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def g():
|
||||
pass
|
||||
@@ -0,0 +1,3 @@
|
||||
def f():
|
||||
def <caret>g():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
class A:
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def method():
|
||||
pass
|
||||
@@ -0,0 +1,3 @@
|
||||
class A:
|
||||
def me<caret>thod(self):
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
def myfunc():
|
||||
pass
|
||||
Reference in New Issue
Block a user