Skip to content

Commit

Permalink
fixup! Add is_empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Apr 30, 2023
1 parent 0771987 commit 370b630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/inference_tip.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _inference_tip_cached(
def inner(*args: _P.args, **kwargs: _P.kwargs) -> Iterator[InferenceResult]:
node = args[0]
context = args[1]
if context.is_empty():
if context is not None and context.is_empty():
# Fresh, empty contexts will defeat the cache.
context = None
try:
Expand Down

0 comments on commit 370b630

Please sign in to comment.