We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f03ab50 commit 069e8e6Copy full SHA for 069e8e6
mypy/subtypes.py
@@ -436,9 +436,8 @@ def visit_instance(self, left: Instance) -> bool:
436
return not isinstance(self.right, NoneType)
437
right = self.right
438
if isinstance(right, TupleType):
439
- return (
440
- self._is_subtype(left, right.partial_fallback)
441
- and self._is_subtype(left, mypy.typeops.tuple_fallback(right))
+ return self._is_subtype(left, right.partial_fallback) and self._is_subtype(
+ left, mypy.typeops.tuple_fallback(right)
442
)
443
if isinstance(right, Instance):
444
if type_state.is_cached_subtype_check(self._subtype_kind, left, right):
0 commit comments