diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-15 14:58:49 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-15 14:58:49 +0100 |
commit | 6ed7b00bb941797e275580e7b2981280fcb54025 (patch) | |
tree | ef9631552e7e3e3cc9160c30f82a7733e433c138 | |
parent | e4293491ef92fec3f820241559951c97ca0db302 (diff) | |
download | astroid-git-revert-perf-affecting-changes-2.tar.gz |
Make sure the context has a callcontext before grabbing the arguments information from itrevert-perf-affecting-changes-2
-rw-r--r-- | astroid/brain/brain_functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/brain/brain_functools.py b/astroid/brain/brain_functools.py index 56a55ff9..c72179f4 100644 --- a/astroid/brain/brain_functools.py +++ b/astroid/brain/brain_functools.py @@ -111,7 +111,7 @@ def _functools_partial_inference(node, context=contextmod.global_context): filled_args = call.positional_arguments[1:] filled_keywords = call.keyword_arguments - if context: + if context and context.callcontext: current_passed_keywords = { keyword for (keyword, _) in context.callcontext.keywords } |