forked from VimPlug/jedi
using super() in actual executed classes wasn't possible. fixes #421
This commit is contained in:
@@ -398,6 +398,8 @@ PrivateVar().__var
|
||||
# -----------------
|
||||
class Super(object):
|
||||
a = 3
|
||||
def return_sup(self):
|
||||
return 1
|
||||
|
||||
class TestSuper(Super):
|
||||
#?
|
||||
@@ -414,6 +416,13 @@ class TestSuper(Super):
|
||||
#?
|
||||
super()
|
||||
|
||||
def return_sup(self):
|
||||
#? int()
|
||||
return super().return_sup()
|
||||
|
||||
#? int()
|
||||
TestSuper().return_sup()
|
||||
|
||||
|
||||
# -----------------
|
||||
# if flow at class level
|
||||
|
||||
Reference in New Issue
Block a user