mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
class assignments for statements is working now (oh gosh, this commit must be so non-readable for everyone except me...)
This commit is contained in:
@@ -160,16 +160,16 @@ class B():
|
||||
pass
|
||||
def t(self):
|
||||
return ''
|
||||
##p = property(t)
|
||||
p = property(t)
|
||||
|
||||
#? []
|
||||
B().r()
|
||||
#? int()
|
||||
B().r
|
||||
|
||||
##? str()
|
||||
#? str()
|
||||
B().p
|
||||
##? []
|
||||
#? []
|
||||
B().p()
|
||||
|
||||
# -----------------
|
||||
@@ -177,16 +177,23 @@ B().p()
|
||||
# -----------------
|
||||
|
||||
class V:
|
||||
def __init__(self):
|
||||
self.a = 1
|
||||
def __init__(self, a):
|
||||
self.a = a
|
||||
|
||||
def ret(self):
|
||||
return self.a
|
||||
|
||||
d = b
|
||||
b = ret
|
||||
c = b
|
||||
|
||||
#? int()
|
||||
V(1).b()
|
||||
#? int()
|
||||
V(1).c()
|
||||
#? []
|
||||
V(1).d()
|
||||
|
||||
##? int()
|
||||
V().b()
|
||||
|
||||
# -----------------
|
||||
# ordering
|
||||
|
||||
Reference in New Issue
Block a user