forked from VimPlug/jedi
Goto on a function/attribute in a class now goes to the definition in its super class, fixes #1175
This commit is contained in:
27
test/completion/inheritance.py
Normal file
27
test/completion/inheritance.py
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
class Super(object):
|
||||
attribute = 3
|
||||
|
||||
def func(self):
|
||||
return 1
|
||||
|
||||
class Inner():
|
||||
pass
|
||||
|
||||
|
||||
class Sub(Super):
|
||||
#? 13 Sub.attribute
|
||||
def attribute(self):
|
||||
pass
|
||||
|
||||
#! 8 ['attribute = 3']
|
||||
def attribute(self):
|
||||
pass
|
||||
|
||||
#! 4 ['def func']
|
||||
func = 3
|
||||
#! 12 ['def func']
|
||||
class func(): ...
|
||||
|
||||
#! 8 ['class Inner']
|
||||
def Inner(self): ...
|
||||
Reference in New Issue
Block a user