We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64dce8 commit ead4fe8Copy full SHA for ead4fe8
astroid/objects.py
@@ -300,7 +300,7 @@ def __init__(
300
301
def infer_call_result(self, caller=None, context: InferenceContext | None = None):
302
if context:
303
- assert context.callcontext
+ assert context.callcontext, "CallContext should be set before inferring call result"
304
current_passed_keywords = {
305
keyword for (keyword, _) in context.callcontext.keywords
306
}
0 commit comments