mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
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
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user