Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support union type syntax in runtime contexts - #10770

Merged
JukkaL merged 4 commits into
masterfrom
union-runtime
Jul 6, 2021
Merged

Support union type syntax in runtime contexts#10770
JukkaL merged 4 commits into
masterfrom
union-runtime

Conversation

@JukkaL

@JukkaL JukkaL commented Jul 6, 2021

Copy link
Copy Markdown
Collaborator

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