You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default param type for types that Click does not have special handling for is str. Click does not have special handling for Enum. The processing pipeline was updated to apply type casting to all data sources consistently. Either use type=click.UNPROCESSED or write a custom type to handle enum members.
Since click 8.0 passing flag_value enum value , it is converting it to string which breaks the CLI. (7.x works fine)
For example
if are run it with
cli --create
Expected behavior
operation is Operation.CREATE of type Operation and the cli prints "create"
Actual behavior
operation is a string with value "Operation.CREATE" and the cli prints nothing
Environment:
The text was updated successfully, but these errors were encountered: