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] condense literal class and function types #11785

Open
carljm opened this issue Jun 6, 2024 · 0 comments
Open

[red-knot] condense literal class and function types #11785

carljm opened this issue Jun 6, 2024 · 0 comments
Labels
red-knot Multi-file analysis & type inference

Comments

@carljm
Copy link
Contributor

carljm commented Jun 6, 2024

Display e.g. Literal[C1, C2], not Literal[C1] | Literal[C2]

For now I think we should not mix different kinds of literals, i.e. we should still produce Literal[1] | Literal[C] | Literal[f], not Literal[1, C, f].

@carljm carljm added the red-knot Multi-file analysis & type inference label Jun 6, 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

No branches or pull requests

1 participant