mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
PY-9365 Make function from method: leads to unresolved attribute reference for method usages in class
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
super(Child, self).__init__()
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
@@ -1,8 +1,9 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class Child(Base):
|
||||
pass
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
pass
|
||||
@@ -1,10 +1,11 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
super(Child, self).__init__()
|
||||
|
||||
|
||||
def f(x):
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
super(Child, self).__init__()
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class Child(Base):
|
||||
pass
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
pass
|
||||
@@ -1,9 +1,11 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
super(Child, self).__init__()
|
||||
|
||||
|
||||
def f():
|
||||
test = 1
|
||||
@@ -1,9 +1,11 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
|
||||
def f(x):
|
||||
test = 1
|
||||
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
super(Child, self).__init__()
|
||||
|
||||
|
||||
def f(x):
|
||||
test = 1
|
||||
@@ -1,10 +1,11 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class A: pass
|
||||
|
||||
|
||||
def foo():
|
||||
print("Hello Pycharm!")
|
||||
|
||||
|
||||
class A: pass
|
||||
|
||||
|
||||
foo()
|
||||
@@ -1,9 +1,9 @@
|
||||
class A: pass
|
||||
|
||||
|
||||
def m():
|
||||
print 1
|
||||
|
||||
|
||||
class A: pass
|
||||
|
||||
|
||||
b = A()
|
||||
a = m()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class A: pass
|
||||
|
||||
|
||||
def m(x):
|
||||
print 1
|
||||
|
||||
|
||||
class A: pass
|
||||
|
||||
|
||||
m(1)
|
||||
@@ -1,7 +1,8 @@
|
||||
def method2():
|
||||
print 1
|
||||
|
||||
|
||||
class A():
|
||||
def method(self):
|
||||
method2()
|
||||
|
||||
|
||||
def method2():
|
||||
print 1
|
||||
Reference in New Issue
Block a user