Skip to content

Commit 6a1ad26

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 82e816c commit 6a1ad26

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/checker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8022,9 +8022,7 @@ def conditional_types(
80228022
# attempt to narrow anything. Instead, we broaden the expr to Any to
80238023
# avoid false positives
80248024
return proposed_type, default
8025-
elif not any(
8026-
type_range.is_upper_bound for type_range in proposed_type_ranges
8027-
) and (
8025+
elif not any(type_range.is_upper_bound for type_range in proposed_type_ranges) and (
80288026
# concrete subtypes
80298027
is_proper_subtype(current_type, proposed_type, ignore_promotions=True)
80308028
# structural subtypes

0 commit comments

Comments
 (0)