summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-03-05 10:28:34 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-05 10:28:34 +0100
commit555085e0bd850c5381e29d15294cd37287f79bd6 (patch)
treecbbb2f018bd5545227f60d4544af2161e45baba2 /astroid/protocols.py
parent5f0675c41ff8c463ab0d657fb6756aa9679cffbf (diff)
downloadastroid-git-555085e0bd850c5381e29d15294cd37287f79bd6.tar.gz
Prevent a recursion error when inferring self-referential variables without definition
Close PyCQA/pylint#1285
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 33d90ea3..6179ab34 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -367,7 +367,7 @@ def arguments_assigned_stmts(self, node=None, context=None, assign_path=None):
callcontext = context.callcontext
context = contextmod.copy_context(context)
context.callcontext = None
- args = arguments.CallSite(callcontext)
+ args = arguments.CallSite(callcontext, context=context)
return args.infer_argument(self.parent, node.name, context)
return _arguments_infer_argname(self, node.name, context)