Skip to content

Commit ac852e6

Browse files
committed
Fix self check
1 parent 2dba308 commit ac852e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5787,7 +5787,7 @@ def check_for_comp(self, e: GeneratorExpr | DictionaryComprehension) -> None:
57875787
else:
57885788
_, sequence_type = self.chk.analyze_iterable_item_type(sequence)
57895789
if (
5790-
isinstance(sequence_type, UninhabitedType)
5790+
isinstance(get_proper_type(sequence_type), UninhabitedType)
57915791
and isinstance(index, NameExpr)
57925792
and index.name == "_"
57935793
):

0 commit comments

Comments
 (0)