Skip to content

Commit a4f1685

Browse files
added comments
1 parent 0bcf1dd commit a4f1685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/checker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8001,8 +8001,10 @@ def conditional_types(
80018001
If default is set it is returned instead.
80028002
"""
80038003
if proposed_type_ranges is None:
8004+
# An isinstance check, but we don't understand the type
80048005
return current_type, default
80058006
if not proposed_type_ranges:
8007+
# This is the case for `if isinstance(x, ())` which always returns False.
80068008
return UninhabitedType(), default
80078009

80088010
if len(proposed_type_ranges) == 1:

0 commit comments

Comments
 (0)