fixed PY-7699 Wrongly reported missed call to superclass constructor using prefixed/embedded class

This commit is contained in:
Ekaterina Tuzova
2013-01-16 17:06:39 +04:00
parent 0f3e4fe397
commit cd0e90bc70
3 changed files with 26 additions and 3 deletions
@@ -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()