Skip to content

Commit e0d5071

Browse files
author
Charulata Lodha
committed
Merge branch 'master' of https://github.com/charulatalodha/mypy
2 parents e3bba27 + 547b546 commit e0d5071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)