@@ -4680,9 +4680,8 @@ def visit_operator_assignment_stmt(self, s: OperatorAssignmentStmt) -> None:
46804680 if inplace :
46814681 # There is __ifoo__, treat as x = x.__ifoo__(y)
46824682 rvalue_type , method_type = self .expr_checker .check_op (method , lvalue_type , s .rvalue , s )
4683- if (
4684- isinstance (inst := get_proper_type (lvalue_type ), Instance )
4685- and isinstance (defn := inst .type .get_method (method ), OverloadedFuncDef )
4683+ if isinstance (inst := get_proper_type (lvalue_type ), Instance ) and isinstance (
4684+ defn := inst .type .get_method (method ), OverloadedFuncDef
46864685 ):
46874686 for item in defn .items :
46884687 if (
@@ -7547,9 +7546,8 @@ def check_deprecated(self, typ: SymbolNode | None, context: Context) -> None:
75477546 """Warn if deprecated and not directly imported with a `from` statement."""
75487547 if isinstance (typ , Decorator ):
75497548 typ = typ .func
7550- if (
7551- isinstance (typ , (FuncDef , OverloadedFuncDef , TypeInfo ))
7552- and (typ .deprecated is not None )
7549+ if isinstance (typ , (FuncDef , OverloadedFuncDef , TypeInfo )) and (
7550+ typ .deprecated is not None
75537551 ):
75547552 for imp in self .tree .imports :
75557553 if isinstance (imp , ImportFrom ) and any (typ .name == n [0 ] for n in imp .names ):
@@ -7561,9 +7559,8 @@ def warn_deprecated(self, typ: SymbolNode | None, context: Context) -> None:
75617559 """Warn if deprecated."""
75627560 if isinstance (typ , Decorator ):
75637561 typ = typ .func
7564- if (
7565- isinstance (typ , (FuncDef , OverloadedFuncDef , TypeInfo ))
7566- and ((deprecated := typ .deprecated ) is not None )
7562+ if isinstance (typ , (FuncDef , OverloadedFuncDef , TypeInfo )) and (
7563+ (deprecated := typ .deprecated ) is not None
75677564 ):
75687565 warn = self .msg .fail if self .options .report_deprecated_as_error else self .msg .note
75697566 warn (deprecated , context , code = codes .DEPRECATED )
0 commit comments