summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
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 bd1fede1..09301511 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -464,7 +464,7 @@ def _infer_context_manager(self, mgr, context):
)
for decorator_node in func.decorators.nodes:
- decorator = next(decorator_node.infer(context))
+ decorator = next(decorator_node.infer(context=context))
if isinstance(decorator, nodes.FunctionDef):
if decorator.qname() == _CONTEXTLIB_MGR:
break