mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-15 01:57:06 +08:00
add test of #183
This commit is contained in:
@@ -544,3 +544,23 @@ class TestSuper(Super):
|
|||||||
def a():
|
def a():
|
||||||
#?
|
#?
|
||||||
super()
|
super()
|
||||||
|
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# if flow at class level
|
||||||
|
# -----------------
|
||||||
|
class TestX(object):
|
||||||
|
def normal_method(self):
|
||||||
|
return 1
|
||||||
|
|
||||||
|
if True:
|
||||||
|
def conditional_method(self):
|
||||||
|
var = self.normal_method()
|
||||||
|
#? int()
|
||||||
|
var
|
||||||
|
return 2
|
||||||
|
|
||||||
|
def other_method(self):
|
||||||
|
var = self.conditional_method()
|
||||||
|
#? int()
|
||||||
|
var
|
||||||
|
|||||||
Reference in New Issue
Block a user