Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-142928: Add deprecation warning for removal ofcolor onHelpFormatter#142946
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
GH-142928: Add deprecation warning for removal ofcolor onHelpFormatter#142946
Conversation
hroncok commentedDec 18, 2025
Thanks. Should this still attempt to call |
| *:mod:`argparse`: | ||
| * The *color* parameter of:class:`~argparse.HelpFormatter` is deprecated. |
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.
It's undocumented, fix the Sphinx warning:
| * The *color* parameter of:class:`~argparse.HelpFormatter` is deprecated. | |
| * The *color* parameter of:class:`!HelpFormatter` is deprecated. |
| @@ -0,0 +1 @@ | |||
| Deprecate:class:`~argparse.HelpFormatter`'s *color* parameter. Users should use the *color* parameter on:class:`~argparse.ArgumentParser` instead. | |||
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.
| Deprecate:class:`~argparse.HelpFormatter`'s *color* parameter.Users should use the *color* parameter on:class:`~argparse.ArgumentParser` instead. | |
| Deprecate:class:`!HelpFormatter`'s *color* parameter.Use the *color* parameter on:class:`~argparse.ArgumentParser` instead. |
Uh oh!
There was an error while loading.Please reload this page.
Never documented and buggy but alas, still used, so we need a deprecation warning. More context here:#142274 (comment)