Closed MiguelMonteiro closed 1 month ago
Thank you for reporting!
This looks like an easy fix. Just adding a unit test and extending this if
condition https://github.com/omni-us/jsonargparse/blob/a8b8b151ab26db57cae94c6f5de9c618daf4971b/jsonargparse/_typehints.py#L850
@MiguelMonteiro would you like to contribute de fix?
Hi @mauvilsa I am happy to contribute, I will open a PR when I get the time.
🐛 Bug report
Empty tuples are not supported by the parser.
To reproduce
Running the following program without passing any arguments or by passing an empty list/tuple
"[]"
results in the following error:Expected behavior
To be able to parse empty tuples without errors.
Environment