Skip to content

Commit 410ce41

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 54b5c72 commit 410ce41

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/meet.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@ def is_overlapping_types(
308308
positives), for example: None only overlaps with explicitly optional types, Any
309309
doesn't overlap with anything except object, we don't ignore positional argument names.
310310
"""
311-
if isinstance(left, TypeGuardedType) or isinstance(
312-
right, TypeGuardedType
313-
):
311+
if isinstance(left, TypeGuardedType) or isinstance(right, TypeGuardedType):
314312
# A type guard forces the new type even if it doesn't overlap the old.
315313
return True
316314

0 commit comments

Comments
 (0)