mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-20 07:19:40 +08:00
Fix: Dicts shouldn't be accessible in tuple assignments for now.
This commit is contained in:
@@ -553,6 +553,8 @@ def check_tuple_assignments(types, name):
|
|||||||
debug.warning("Invalid tuple lookup #%s of result %s in %s",
|
debug.warning("Invalid tuple lookup #%s of result %s in %s",
|
||||||
index, types, name)
|
index, types, name)
|
||||||
else:
|
else:
|
||||||
|
if r.type == 'dict':
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
new_types |= func(index)
|
new_types |= func(index)
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user