Skip to content

Commit 02a5c1b

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

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mypy/checker.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3223,10 +3223,7 @@ def check_type_alias_rvalue(self, s: AssignmentStmt) -> None:
32233223
self.store_type(s.lvalues[-1], alias_type)
32243224

32253225
def check_assignment(
3226-
self,
3227-
lvalue: Lvalue,
3228-
rvalue: Expression,
3229-
infer_lvalue_type: bool = True,
3226+
self, lvalue: Lvalue, rvalue: Expression, infer_lvalue_type: bool = True
32303227
) -> None:
32313228
"""Type check a single assignment: lvalue = rvalue."""
32323229
if isinstance(lvalue, (TupleExpr, ListExpr)):
@@ -5046,9 +5043,7 @@ def visit_operator_assignment_stmt(self, s: OperatorAssignmentStmt) -> None:
50465043
# There is no __ifoo__, treat as x = x <foo> y
50475044
expr = OpExpr(s.op, s.lvalue, s.rvalue)
50485045
expr.set_line(s)
5049-
self.check_assignment(
5050-
lvalue=s.lvalue, rvalue=expr, infer_lvalue_type=True
5051-
)
5046+
self.check_assignment(lvalue=s.lvalue, rvalue=expr, infer_lvalue_type=True)
50525047
self.check_final(s)
50535048

50545049
def visit_assert_stmt(self, s: AssertStmt) -> None:

0 commit comments

Comments
 (0)