Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

eggry
Copy link
Contributor

@eggry eggry commented Oct 6, 2024

In Python 3.13 and 3.12.7, the behavior of _parse_optional has changed to return a list of tuples: python/cpython#124631
This change would break the optional argument parsing of this library.

This PR will detect this behavior and return the proper format accordingly.
This PR resolves issue #507.

Cross ref: omni-us/jsonargparse#591 (review)

@kislyuk kislyuk merged commit 98f551f into kislyuk:develop Oct 6, 2024
@kislyuk
Copy link
Owner

kislyuk commented Oct 6, 2024

Awesome. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants