KEMBAR78
Support union type syntax in runtime contexts by JukkaL · Pull Request #10770 · python/mypy · GitHub
Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jul 6, 2021

Support the X | Y syntax (PEP 604) in type aliases, casts, type applications
and base classes.

These are only available in Python 3.10 mode and probably won't work in
stubs when targeting earlier Python versions yet.

Work on #9880.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-pep-604 PEP 604 (union | operator)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants