Move the ModuleContext to a separate module.
This commit is contained in:
1 parent
41cfbe2382
commit
8f177eea07
13 files changed
+236
-223
No files matched your search
@@ -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.representation import ModuleContext
|
||||
from jedi.evaluate.context.module import ModuleContext
|
||||
module = instance.get_root_context()
|
||||
if not isinstance(module, ModuleContext):
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user