mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix super call goto for multiple inheritance, fixes #1311
This commit is contained in:
@@ -109,6 +109,23 @@ class X():
|
||||
#! 3 []
|
||||
X(foo=x)
|
||||
|
||||
|
||||
# Multiple inheritance
|
||||
class Foo:
|
||||
def foo(self):
|
||||
print("foo")
|
||||
class Bar:
|
||||
def bar(self):
|
||||
print("bar")
|
||||
class Baz(Foo, Bar):
|
||||
def baz(self):
|
||||
#! ['def foo']
|
||||
super().foo
|
||||
#! ['def bar']
|
||||
super().bar
|
||||
#! ['instance Foo']
|
||||
super()
|
||||
|
||||
# -----------------
|
||||
# imports
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user