mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix the first issue in #1010
Somehow it was still possible with lists to recurse.
This commit is contained in:
@@ -401,6 +401,18 @@ for x in [1] + ['']:
|
||||
#? int() str()
|
||||
x
|
||||
|
||||
# -----------------
|
||||
# Potential Recursion Issues
|
||||
# -----------------
|
||||
class X():
|
||||
def y(self):
|
||||
self.a = [1]
|
||||
|
||||
def x(self):
|
||||
self.a = list(self.a)
|
||||
#? int()
|
||||
self.a[0]
|
||||
|
||||
# -----------------
|
||||
# For loops with attribute assignment.
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user