-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
argparse: Unexpanded replacements in "unknown action" exception #134970
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
Comments
mgorny
added a commit
to mgorny/cpython
that referenced
this issue
May 31, 2025
Fix the "unknown action" exception in `argparse.ArgumentParser.add_argument_group()` to correctly replace the action class.
serhiy-storchaka
pushed a commit
that referenced
this issue
Jun 1, 2025
Fix the "unknown action" exception in argparse.ArgumentParser.add_argument_group() to correctly replace the action class.
serhiy-storchaka
pushed a commit
that referenced
this issue
Jun 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
cpython/Lib/argparse.py
Lines 1536 to 1537 in ad39f01
There is a missing
f
there, so the replacements don't happen. Noticed accidentally because it broke snakeoil's test suite.CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
Linux
Linked PRs
argparse
module #134971The text was updated successfully, but these errors were encountered: