Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support union type syntax in runtime contexts #10770

Merged
merged 4 commits into from
Jul 6, 2021
Merged

Support union type syntax in runtime contexts #10770

merged 4 commits into from
Jul 6, 2021

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