mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix a recursion error, fixes #1173
This commit is contained in:
@@ -76,3 +76,18 @@ class InstanceAttributeIfs:
|
||||
InstanceAttributeIfs().a1
|
||||
#? int() str()
|
||||
InstanceAttributeIfs().a2
|
||||
|
||||
|
||||
|
||||
class A:
|
||||
def a(self, b):
|
||||
for x in [self.a(i) for i in b]:
|
||||
#?
|
||||
x
|
||||
|
||||
class B:
|
||||
def a(self, b):
|
||||
for i in b:
|
||||
for i in self.a(i):
|
||||
#?
|
||||
yield i
|
||||
|
||||
Reference in New Issue
Block a user