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 @@ -2117,7 +2117,8 @@ def check_method_override(
21172117 and (self .options .check_untyped_defs or not defn .is_dynamic ())
21182118 and (
21192119 # don't check override for synthesized __replace__ methods from dataclasses
2120- defn .name != "__replace__" or defn .info .metadata .get ("dataclass_tag" ) is None
2120+ defn .name != "__replace__"
2121+ or defn .info .metadata .get ("dataclass_tag" ) is None
21212122 )
21222123 )
21232124 found_method_base_classes : list [TypeInfo ] = []
@@ -4291,8 +4292,7 @@ def check_lvalue(
42914292 self .store_type (lvalue , lvalue_type )
42924293 elif isinstance (lvalue , (TupleExpr , ListExpr )):
42934294 types = [
4294- self .check_lvalue (sub_expr )[0 ]
4295- or
4295+ self .check_lvalue (sub_expr )[0 ] or
42964296 # This type will be used as a context for further inference of rvalue,
42974297 # we put Uninhabited if there is no information available from lvalue.
42984298 UninhabitedType ()
You can’t perform that action at this time.
0 commit comments