Skip to content

Commit 208dddf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 82cbd1b commit 208dddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy/checker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,8 +2166,7 @@ def check_method_override_for_base_with_name(
21662166
)
21672167
self.fail(msg, context)
21682168
elif isinstance(original_type, UnionType) and any(
2169-
is_subtype(typ, orig_typ)
2170-
for orig_typ in original_type.items
2169+
is_subtype(typ, orig_typ) for orig_typ in original_type.items
21712170
):
21722171
# This method is a subtype of at least one union variant.
21732172
if (

0 commit comments

Comments
 (0)