summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-06-20 21:59:47 -0600
committerBryce Guinta <bryce.guinta@protonmail.com>2018-07-05 23:17:06 -0600
commitaea774e9554877871045f7f5d0a2f6e063a7c756 (patch)
tree4da5ffea7c605082a54874fdb685256bd3bd4ca5 /astroid/protocols.py
parent904734c383be4a7e11c8ed16e130d0dff5f56526 (diff)
downloadastroid-git-aea774e9554877871045f7f5d0a2f6e063a7c756.tar.gz
Fix inference for nested calls
Add context_lookup to the context class as extra_context. Deliver the correct context with the correct boundnode for function argument nodes. Close #177
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 2cd1e9d8..8d0a3dcb 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -306,7 +306,8 @@ def _arguments_infer_argname(self, name, context):
return
if context and context.callcontext:
- call_site = arguments.CallSite(context.callcontext)
+ call_site = arguments.CallSite(context.callcontext,
+ context.extra_context)
for value in call_site.infer_argument(self.parent, name, context):
yield value
return