Refactor the way builtins can be overwritten by jedi's own contexts
This commit is contained in:
1 parent
5c8300e62a
commit
bf01b9d47c
10 files changed
+133
-163
No files matched your search
@@ -240,7 +240,7 @@ def _star_star_dict(context, array, input_node, funcdef):
|
||||
# For now ignore this case. In the future add proper iterators and just
|
||||
# make one call without crazy isinstance checks.
|
||||
return {}
|
||||
elif isinstance(array, iterable.AbstractIterable) and array.array_type == 'dict':
|
||||
elif isinstance(array, iterable.Sequence) and array.array_type == 'dict':
|
||||
return array.exact_key_items()
|
||||
else:
|
||||
if funcdef is not None:
|
||||
|
||||
Reference in new issue
Block a user