Move the base Context stuff to another module to keep context free for imports.

This commit is contained in:
Dave Halter committed 2017-09-30 16:46:07 +02:00
1 parent 3c2221ec2d
commit 3c75f27376
27 files changed
+62 -60

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ def _check_for_setattr(instance):
"""
Check if there's any setattr method inside an instance. If so, return True.
"""
from jedi.evaluate.context.module import ModuleContext
from jedi.evaluate.context import ModuleContext
module = instance.get_root_context()
if not isinstance(module, ModuleContext):
return False