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

Possible support for Literals #1

Closed
vikigenius opened this issue Jan 30, 2021 · 1 comment
Closed

Possible support for Literals #1

vikigenius opened this issue Jan 30, 2021 · 1 comment

Comments

@vikigenius
Copy link

Hi, thanks for this very nice library. It looks very good.

I have a suggestion. Would it be possible to support Literals: https://docs.python.org/3/library/typing.html#typing.Literal

Right now, we can use Enum to denote choices, which is good. But we can also use the new Literal typing to denote choices, which can be very convenient.

@jnoortheen
Copy link
Owner

Yes it is in my to-do list. I will update it soon.

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