Skip to content

Commit

Permalink
Fix issue omni-us#590
Browse files Browse the repository at this point in the history
  • Loading branch information
eggry authored Oct 5, 2024
1 parent a8b8b15 commit afd078b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsonargparse/_typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ def parse_argv_item(arg_string):
if typehint:
if parse_optional_num_return == 4:
return action, arg_base, sep, explicit_arg
elif parse_optional_num_return == 1:
return [(action, arg_base, sep, explicit_arg)]
return action, arg_base, explicit_arg
return None

Expand Down

0 comments on commit afd078b

Please sign in to comment.