diff options
Diffstat (limited to 'inference.py')
-rw-r--r-- | inference.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inference.py b/inference.py index edc71839..e2411c04 100644 --- a/inference.py +++ b/inference.py @@ -199,7 +199,7 @@ def infer_from(self, context=None, asname=True): try: context = copy_context(context) context.lookupname = name - return _infer_stmts(module.getattr(name), context) + return _infer_stmts(module.getattr(name, ignore_locals=module is self.root()), context) except NotFoundError: raise InferenceError(name) nodes.From.infer = path_wrapper(infer_from) |