mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Create a failing test for an issue probably with the parser.
This commit is contained in:
@@ -553,7 +553,7 @@ def check_tuple_assignments(types, name):
|
||||
debug.warning("Invalid tuple lookup #%s of result %s in %s",
|
||||
index, types, name)
|
||||
else:
|
||||
if r.type == 'dict':
|
||||
if isinstance(r, iterable.Array) and r.type == 'dict':
|
||||
continue
|
||||
try:
|
||||
new_types |= func(index)
|
||||
|
||||
@@ -55,6 +55,13 @@ a
|
||||
fooooo2('')
|
||||
|
||||
|
||||
def isinstance_func(arr):
|
||||
for value in arr:
|
||||
if isinstance(value, dict):
|
||||
# Shouldn't fail, even with the dot.
|
||||
#? 17 dict()
|
||||
value.
|
||||
|
||||
# -----------------
|
||||
# Names with multiple indices.
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user