We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e816c commit 6a1ad26Copy full SHA for 6a1ad26
mypy/checker.py
@@ -8022,9 +8022,7 @@ def conditional_types(
8022
# attempt to narrow anything. Instead, we broaden the expr to Any to
8023
# avoid false positives
8024
return proposed_type, default
8025
- elif not any(
8026
- type_range.is_upper_bound for type_range in proposed_type_ranges
8027
- ) and (
+ elif not any(type_range.is_upper_bound for type_range in proposed_type_ranges) and (
8028
# concrete subtypes
8029
is_proper_subtype(current_type, proposed_type, ignore_promotions=True)
8030
# structural subtypes
0 commit comments