Skip to content

Commit 069e8e6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f03ab50 commit 069e8e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypy/subtypes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,8 @@ def visit_instance(self, left: Instance) -> bool:
436436
return not isinstance(self.right, NoneType)
437437
right = self.right
438438
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))
439+
return self._is_subtype(left, right.partial_fallback) and self._is_subtype(
440+
left, mypy.typeops.tuple_fallback(right)
442441
)
443442
if isinstance(right, Instance):
444443
if type_state.is_cached_subtype_check(self._subtype_kind, left, right):

0 commit comments

Comments
 (0)