Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ead4fe8

Browse files
nickdrozdDanielNoord
andauthoredApr 4, 2023
Update astroid/objects.py
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
1 parent d64dce8 commit ead4fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎astroid/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def __init__(
300300

301301
def infer_call_result(self, caller=None, context: InferenceContext | None = None):
302302
if context:
303-
assert context.callcontext
303+
assert context.callcontext, "CallContext should be set before inferring call result"
304304
current_passed_keywords = {
305305
keyword for (keyword, _) in context.callcontext.keywords
306306
}

0 commit comments

Comments
 (0)
Please sign in to comment.