mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-7699 Wrongly reported missed call to superclass constructor using prefixed/embedded class
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
class Base(object):
|
||||
def __init__(self, param):
|
||||
print "Base", param
|
||||
|
||||
|
||||
class Wrapper(object):
|
||||
class Child(Base):
|
||||
def __init__(self, param1, param2):
|
||||
# Here PyCharm claims no super call
|
||||
super(Wrapper.Child, self).__init__(param2)
|
||||
print "Child", param1
|
||||
|
||||
def __init__(self):
|
||||
self.child = self.Child("aaa", "bbb")
|
||||
|
||||
|
||||
wrapper = Wrapper()
|
||||
Reference in New Issue
Block a user