-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow default values convertible to arg_type #123
Comments
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
carlobaldassi
added a commit
that referenced
this issue
May 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently default values that are not of the same type as the arg_type are disallowed. This is overly restrictive and could be relaxed to allow default values that can be automatically converted to arg_type. For example, I believe the following should be supported but it currently throws an error:
Note the following works fine:
The text was updated successfully, but these errors were encountered: