Skip to content

Commit 284fe23

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0eb4a99 commit 284fe23

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
@@ -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()

0 commit comments

Comments
 (0)