Skip to content
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

Fix issue #507 #508

Merged
merged 1 commit into from
Oct 6, 2024
Merged

Fix issue #507 #508

merged 1 commit into from
Oct 6, 2024

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