We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d9379 commit e91d02dCopy full SHA for e91d02d
mypy/checkexpr.py
@@ -6065,8 +6065,7 @@ def accept(
6065
elif (
6066
isinstance(p_type_context, UnionType)
6067
and any(
6068
- isinstance(p_item := get_proper_type(item), TypeType)
6069
- and p_item.is_type_form
+ isinstance(p_item := get_proper_type(item), TypeType) and p_item.is_type_form
6070
for item in p_type_context.items
6071
)
6072
and (node_as_type := self.try_parse_as_type_expression(node)) is not None
0 commit comments