Skip to content

Commit 370b630

Browse files
fixup! Add is_empty()
1 parent 0771987 commit 370b630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/inference_tip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _inference_tip_cached(
3535
def inner(*args: _P.args, **kwargs: _P.kwargs) -> Iterator[InferenceResult]:
3636
node = args[0]
3737
context = args[1]
38-
if context.is_empty():
38+
if context is not None and context.is_empty():
3939
# Fresh, empty contexts will defeat the cache.
4040
context = None
4141
try:

0 commit comments

Comments
 (0)