-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-58282: Fix support of tuple metavar for positional arguments in argparse #124782
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
gh-58282: Fix support of tuple metavar for positional arguments in argparse #124782
Conversation
… in argparse Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. Co-authored-b: Cyker Way <[email protected]>
30a33a6
to
b24aa03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good to me. Thanks for adding so many test cases!
Thank you for your review, @savannahostrowski. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
… in argparse (pythonGH-124782) Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. (cherry picked from commit 9b31a2d) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Cyker Way <[email protected]>
GH-124881 is a backport of this pull request to the 3.12 branch. |
…guments in argparse (pythonGH-124782) Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. (cherry picked from commit 9b31a2d) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Cyker Way <[email protected]>
GH-124882 is a backport of this pull request to the 3.13 branch. |
…s in argparse (GH-124782) (GH-124881) Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. (cherry picked from commit 9b31a2d) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Cyker Way <[email protected]>
…s in argparse (GH-124782) (GH-124882) Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. (cherry picked from commit 9b31a2d) Co-authored-by: Cyker Way <[email protected]>
Previously, formatting help output or error message for positional argument with a tuple metavar raised exception.
Co-authored-by: Cyker Way [email protected]