mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +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",
|
debug.warning("Invalid tuple lookup #%s of result %s in %s",
|
||||||
index, types, name)
|
index, types, name)
|
||||||
else:
|
else:
|
||||||
if r.type == 'dict':
|
if isinstance(r, iterable.Array) and r.type == 'dict':
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
new_types |= func(index)
|
new_types |= func(index)
|
||||||
|
|||||||
@@ -55,6 +55,13 @@ a
|
|||||||
fooooo2('')
|
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.
|
# Names with multiple indices.
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user