mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 17:48:55 +08:00
Fix the first issue in #1010
Somehow it was still possible with lists to recurse.
This commit is contained in:
1 parent
1672613d04
commit
6042706922
4 files changed
+37
-2
No files matched your search
@@ -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