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 54b5c72 commit 410ce41Copy full SHA for 410ce41
mypy/meet.py
@@ -308,9 +308,7 @@ def is_overlapping_types(
308
positives), for example: None only overlaps with explicitly optional types, Any
309
doesn't overlap with anything except object, we don't ignore positional argument names.
310
"""
311
- if isinstance(left, TypeGuardedType) or isinstance(
312
- right, TypeGuardedType
313
- ):
+ if isinstance(left, TypeGuardedType) or isinstance(right, TypeGuardedType):
314
# A type guard forces the new type even if it doesn't overlap the old.
315
return True
316
0 commit comments