File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2111,7 +2111,8 @@ def check_method_override(
21112111 and (self .options .check_untyped_defs or not defn .is_dynamic ())
21122112 and (
21132113 # don't check override for synthesized __replace__ methods from dataclasses
2114- defn .name != "__replace__" or defn .info .metadata .get ("dataclass_tag" ) is None
2114+ defn .name != "__replace__"
2115+ or defn .info .metadata .get ("dataclass_tag" ) is None
21152116 )
21162117 )
21172118 found_method_base_classes : list [TypeInfo ] = []
@@ -4285,8 +4286,7 @@ def check_lvalue(
42854286 self .store_type (lvalue , lvalue_type )
42864287 elif isinstance (lvalue , (TupleExpr , ListExpr )):
42874288 types = [
4288- self .check_lvalue (sub_expr )[0 ]
4289- or
4289+ self .check_lvalue (sub_expr )[0 ] or
42904290 # This type will be used as a context for further inference of rvalue,
42914291 # we put Uninhabited if there is no information available from lvalue.
42924292 UninhabitedType ()
You can’t perform that action at this time.
0 commit comments