-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-139736: Fix argparse indentation overshoot #139738
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
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
The argparse tests failed because the previous indentation amount is expected; should I go over the tests and adjust them accordingly? |
When calculating the --help indentation, strip colors before counting the action length
2ac39cb
to
f63fed7
Compare
Alright -- I believe the remaining test failure is unrelated. Please let me know if there is anything more to be done at this point :) |
I restarted the failure and it passed 👍 |
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.
LGTM! Thanks so much!
Thanks @9001 for the PR, and @savannahostrowski for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(cherry picked from commit 72e370c) Co-authored-by: ed <s@ocv.me> Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
GH-139793 is a backport of this pull request to the 3.14 branch. |
When calculating the
--help
indentation, strip colors before counting the action length.