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

[red-knot] Understand typing.Union special form in annotations #14498

Closed
Tracked by #14172
Glyphack opened this issue Nov 20, 2024 · 0 comments · Fixed by #14499
Closed
Tracked by #14172

[red-knot] Understand typing.Union special form in annotations #14498

Glyphack opened this issue Nov 20, 2024 · 0 comments · Fixed by #14499
Labels
red-knot Multi-file analysis & type inference

Comments

@Glyphack
Copy link
Contributor

(part of #14172)

Understand typing.Union in annotations. Union is similar to the union types created with |.
https://typing.readthedocs.io/en/latest/spec/historical.html#union-and-optional

@MichaReiser MichaReiser added the red-knot Multi-file analysis & type inference label Nov 20, 2024
@AlexWaygood AlexWaygood changed the title [red-knot] Understand typing.Optional special form in annotations [red-knot] Understand typing.Union special form in annotations Nov 20, 2024
@carljm carljm closed this as completed in aecdb8c Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants