File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments