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
From what I see the validation of Literal works as expected, so I am a bit confused with "the better ... and input validation". This seems to be just a request to change the help message. And the only difference would be that instead of CHOICE it would be {A,B}. Correct?
- tuple metavar now shown as [ITEM,...].
- Required arguments with None default now shown without brackets in usage.
- Improved description of --print_config in help.
- Applied pyupgrade --py36-plus and did some minor refactorings.
- Added issue templates.
This is now done. However, note that it has been done for a type hint like Literal["A", "B"]. Having a union of individual literals shouldn't be used and makes no sense to have special support for.
It would be nice if
jsonargparse
supported choices withtyping.Literal
.So this script:
would be equal to
with the better help message and input validation
The text was updated successfully, but these errors were encountered: