mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 22:25:16 +08:00
Fix issue https://github.com/DamnWidget/anaconda/issues/449. Using self should not cause side effects in completion.
This commit is contained in:
1 parent
3ad159b0aa
commit
4a19376187
3 files changed
+19
-1
No files matched your search
@@ -386,3 +386,18 @@ recursion1([1,2])[0]
|
||||
for x in [1] + ['']:
|
||||
#? int() str()
|
||||
x
|
||||
|
||||
# -----------------
|
||||
# For loops with attribute assignment.
|
||||
# -----------------
|
||||
def test_func():
|
||||
x = 'asdf'
|
||||
for x.something in [6,7,8]:
|
||||
pass
|
||||
#? str()
|
||||
x
|
||||
|
||||
for x.something, b in [[6, 6.0]]:
|
||||
pass
|
||||
#? str()
|
||||
x
|
||||
Reference in new issue
Block a user