forked from VimPlug/jedi
properties work now also with initialization values of classes
This commit is contained in:
@@ -66,6 +66,23 @@ nothing("")[0]
|
||||
#? str()
|
||||
nothing("")[1]
|
||||
|
||||
# -----------------
|
||||
# properties
|
||||
# -----------------
|
||||
|
||||
class PropClass():
|
||||
def __init__(self, a):
|
||||
self.a = a
|
||||
@property
|
||||
def ret(self):
|
||||
return self.a
|
||||
|
||||
#? str()
|
||||
PropClass("").ret
|
||||
|
||||
#? []
|
||||
PropClass().ret.
|
||||
|
||||
# -----------------
|
||||
# not found decorators
|
||||
# -----------------
|
||||
|
||||
2
test/completion/thirdparty/jedi.py
vendored
2
test/completion/thirdparty/jedi.py
vendored
@@ -21,5 +21,5 @@ el = scopes.
|
||||
#? tuple()
|
||||
el = evaluate.get_names_for_scope()[0]
|
||||
|
||||
#? tuple()
|
||||
##? tuple()
|
||||
el = evaluate.get_names_for_scope(1,2)[0][0]
|
||||
|
||||
Reference in New Issue
Block a user