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
@@ -164,7 +164,7 @@ def _check_for_exception_catch(node_context, jedi_name, exception, payload=None)
|
||||
except_classes = node_context.eval_node(node)
|
||||
for cls in except_classes:
|
||||
from jedi.evaluate.context import iterable
|
||||
if isinstance(cls, iterable.AbstractIterable) and \
|
||||
if isinstance(cls, iterable.Sequence) and \
|
||||
cls.array_type == 'tuple':
|
||||
# multiple exceptions
|
||||
for lazy_context in cls.py__iter__():
|
||||
|
||||
Reference in new issue
Block a user