diff options
Diffstat (limited to 'astroid/tree/base.py')
-rw-r--r-- | astroid/tree/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/astroid/tree/base.py b/astroid/tree/base.py index f4ca188a..f5b598a2 100644 --- a/astroid/tree/base.py +++ b/astroid/tree/base.py @@ -25,6 +25,7 @@ import six from astroid import as_string from astroid import decorators from astroid import exceptions +from astroid import inference from astroid.interpreter import scope from astroid import mixins from astroid.tree import treeabc @@ -75,14 +76,14 @@ class NodeNG(object): pass if not context: - return self._infer(context, **kwargs) + return inference.infer(self, context, **kwargs) key = (self, context.lookupname, context.callcontext, context.boundnode) if key in context.inferred: return iter(context.inferred[key]) - return context.cache_generator(key, self._infer(context, **kwargs)) + return context.cache_generator(key, inference.infer(self, context, **kwargs)) def _repr_name(self): """return self.name or self.attrname or '' for nice representation""" |