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 new union type syntax with isinstance #10775

Merged
merged 1 commit into from
Jul 7, 2021
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jul 6, 2021

Support things like isinstance(x, int | str) in Python 3.10

Closes #9880.

Support things like `isinstance(x, int | str)` in Python 3.10

Closes #9880.
@JukkaL JukkaL merged commit f137f11 into master Jul 7, 2021
@JukkaL JukkaL deleted the isinstance-union branch July 7, 2021 09:11
@AlexWaygood AlexWaygood added the topic-pep-604 PEP 604 (union | operator) label Apr 6, 2022
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.

Support PEP 604 syntax for runtime use cases
3 participants