Skip to content

Commit 45d9379

Browse files
committed
Make ruff happy
1 parent 4cc1b18 commit 45d9379

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mypy/checkexpr.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6065,11 +6065,9 @@ def accept(
60656065
elif (
60666066
isinstance(p_type_context, UnionType)
60676067
and any(
6068-
[
6069-
isinstance(p_item := get_proper_type(item), TypeType)
6070-
and p_item.is_type_form
6071-
for item in p_type_context.items
6072-
]
6068+
isinstance(p_item := get_proper_type(item), TypeType)
6069+
and p_item.is_type_form
6070+
for item in p_type_context.items
60736071
)
60746072
and (node_as_type := self.try_parse_as_type_expression(node)) is not None
60756073
):

0 commit comments

Comments
 (0)