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-69223: Document that add_argument() returns an Action object#145538

Merged
savannahostrowski merged 3 commits intopython:mainfrom
Bortlesboat:doc-argparse-add-argument-return
Mar 6, 2026
Merged

gh-69223: Document that add_argument() returns an Action object#145538
savannahostrowski merged 3 commits intopython:mainfrom
Bortlesboat:doc-argparse-add-argument-return

Conversation

@Bortlesboat
Copy link
Contributor

@BortlesboatBortlesboat commentedMar 5, 2026
edited by github-actionsbot
Loading

Document that ArgumentParser.add_argument() returns an Action object. This is useful when callers need to reference the created action for further customization or inspection.

Closes#69223.


📚 Documentation preview 📚:https://cpython-previews--145538.org.readthedocs.build/

@bedevere-appbedevere-appbot added docsDocumentation in the Doc dir skip news labelsMar 5, 2026
@python-cla-bot
Copy link

python-cla-botbot commentedMar 5, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@savannahostrowski
Copy link
Member

@Bortlesboat In order to accept this contribution, we'll need you to sign the CLA left in the comment by the bot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Member

@savannahostrowskisavannahostrowski left a comment

Choose a reason for hiding this comment

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

LGTM!

@savannahostrowskisavannahostrowski added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsMar 6, 2026
@savannahostrowskisavannahostrowskienabled auto-merge (squash)March 6, 2026 16:03
@savannahostrowskisavannahostrowski merged commitb28e5f5 intopython:mainMar 6, 2026
28 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsMar 6, 2026
@miss-islington-app
Copy link

Thanks@Bortlesboat for the PR, and@savannahostrowski for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMar 6, 2026
…pythonGH-145538)(cherry picked from commit b28e5f58ebf8d9badcc893cd189cb1575d4e3614)Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMar 6, 2026
…pythonGH-145538)(cherry picked from commitb28e5f5)Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
@bedevere-app
Copy link

GH-145595 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMar 6, 2026
@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMar 6, 2026
@bedevere-app
Copy link

GH-145596 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMar 6, 2026
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@savannahostrowskisavannahostrowskisavannahostrowski approved these changes

Assignees

No one assigned

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

argparse: document that add_argument returns an Action object

2 participants

@Bortlesboat@savannahostrowski

[8]ページ先頭

©2009-2026 Movatter.jp