Skip to content

Commit 8df61ed

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 92cda7b commit 8df61ed

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

mypy/checkexpr.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,9 +3713,7 @@ def visit_comparison_expr(self, e: ComparisonExpr) -> Type:
37133713
if not w.has_new_errors() and operator in ("<", ">", "<=", ">="):
37143714
right_type = self.accept(right)
37153715
if not self.chk.can_skip_diagnostics:
3716-
self._check_tuple_element_comparison(
3717-
operator, left_type, right_type, e
3718-
)
3716+
self._check_tuple_element_comparison(operator, left_type, right_type, e)
37193717

37203718
elif operator == "is" or operator == "is not":
37213719
right_type = self.accept(right) # validate the right operand
@@ -3888,11 +3886,7 @@ def dangerous_comparison(
38883886
return not is_overlapping_types(left, right, ignore_promotions=False)
38893887

38903888
def _check_tuple_element_comparison(
3891-
self,
3892-
operator: str,
3893-
left_type: Type,
3894-
right_type: Type,
3895-
context: Context,
3889+
self, operator: str, left_type: Type, right_type: Type, context: Context
38963890
) -> None:
38973891
"""Check that tuple element types support an ordering comparison.
38983892

0 commit comments

Comments
 (0)