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 9df0e6b commit a2c318bCopy full SHA for a2c318b
mypy/nodes.py
@@ -2151,7 +2151,7 @@ def accept(self, visitor: ExpressionVisitor[T]) -> T:
2151
# Expression subtypes that could represent the root of a valid type expression.
2152
# Always contains an "as_type" attribute.
2153
# TODO: Make this into a Protocol if mypyc is OK with that.
2154
-MaybeTypeExpression = Union[IndexExpr, NameExpr, OpExpr, StrExpr]
+MaybeTypeExpression = (IndexExpr, NameExpr, OpExpr, StrExpr)
2155
2156
2157
class ComparisonExpr(Expression):
0 commit comments