-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Failure to use typing.NewType as the type for an option #2773
Comments
Lines 1001 to 1058 in 4a758f5
|
typing.NewType
is a cheap way to create an alias type for type checking only (at runtime it is the underlying type). I was hoping to use this one in a@click.option
parameter/type list, but this does something unexpected (although I can understand why it behaves like this).With the default, this is happy:
when passing a value, it isn't:
Environment:
The text was updated successfully, but these errors were encountered: