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

Specify that type[] distributes over unions #1841

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

InSyncWithFoo
Copy link
Contributor

I think this much can be inferred, since the specs already said that:

  • type[A | B] is supported, and
  • B the class is a valid value for type[A | B]

@erictraut
Copy link
Collaborator

Since this is a substantive change to the spec, it should go through formal TC review. Please follow the process documented here.

@InSyncWithFoo
Copy link
Contributor Author

InSyncWithFoo commented Aug 15, 2024

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hauntsaninja hauntsaninja merged commit d93fba9 into python:main Sep 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants