mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 00:53:45 +08:00
properties work now also with initialization values of classes
This commit is contained in:
1 parent
e4739fddf9
commit
53358b28d3
5 files changed
+26
-9
No files matched your search
@@ -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