Skip to content

Feature request: typing.Literal #134

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

Open
redsun82 opened this issue Nov 4, 2024 · 1 comment
Open

Feature request: typing.Literal #134

redsun82 opened this issue Nov 4, 2024 · 1 comment

Comments

@redsun82
Copy link

redsun82 commented Nov 4, 2024

Could we have PEP586 implemented in the type extension? I think that would be handy in a configuration language. There's enum, but that requires using the enum constructor. For me it would be nice to express that a certain argument expects something from a set of specific values, especially strings.

@ndmitchell
Copy link
Contributor

We don't currently have any plans to refine the type system to follow the latest Python type specification.

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

No branches or pull requests

2 participants