Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2023
1 parent f03ab50 commit 069e8e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mypy/subtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,8 @@ def visit_instance(self, left: Instance) -> bool:
return not isinstance(self.right, NoneType)
right = self.right
if isinstance(right, TupleType):
return (
self._is_subtype(left, right.partial_fallback)
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)
)
if isinstance(right, Instance):
if type_state.is_cached_subtype_check(self._subtype_kind, left, right):
Expand Down

0 comments on commit 069e8e6

Please sign in to comment.