summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-11-28 09:55:05 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-12-04 13:31:38 +0100
commit55b43f6755d4839cefaf010eb2ced747d014d459 (patch)
tree423bce7071ee07f5e3ffb9d983b38296f5c9acc2 /astroid/protocols.py
parent4952320cda79c79f6868e4fb59f09e188cd9cafc (diff)
downloadastroid-git-55b43f6755d4839cefaf010eb2ced747d014d459.tar.gz
Add support for inferring properties
These new capabilities will allow inferring both the `property` builtin as well as property attributes such as `.deleter` and `.setter`.
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