Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Conversation

@savannahostrowski
Copy link
Member

@savannahostrowskisavannahostrowski commentedDec 18, 2025
edited
Loading

Never documented and buggy but alas, still used, so we need a deprecation warning. More context here:#142274 (comment)

@hroncok
Copy link
Contributor

Thanks. Should this still attempt to callself._set_color(color) in this case? Or else if it cannot, say "deprecated and does nothing" in the warning/docs?


*:mod:`argparse`:

* The *color* parameter of:class:`~argparse.HelpFormatter` is deprecated.
Copy link
Member

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:

Suggested change
* 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hugovkhugovkhugovk left review comments

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@savannahostrowski@hroncok@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp