diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-10-10 11:25:19 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-10-10 11:25:19 +0200 |
commit | 30c190948febb0f36bd259be7c977c92a8cc386f (patch) | |
tree | 43cb33f172be65eb4e72f08d23b871d83e58d36b /astroid | |
parent | fe9324c87e285fda1f0195d91fa8bdbde210b2f2 (diff) | |
download | astroid-git-30c190948febb0f36bd259be7c977c92a8cc386f.tar.gz |
Simplify the creation of extra_context for _infer_call
Diffstat (limited to 'astroid')
-rw-r--r-- | astroid/inference.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index ac473093..7352ff3a 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -208,10 +208,9 @@ def infer_call(self, context=None): args=self.args, keywords=self.keywords ) callcontext.boundnode = None - extra_context = {} if context is not None: - extra_context = _populate_context_lookup(self, context.clone()) - callcontext.extra_context = extra_context + callcontext.extra_context = _populate_context_lookup(self, context.clone()) + for callee in self.func.infer(context): if callee is util.Uninferable: yield callee |