gh-69223: Document that add_argument() returns an Action object#145538
gh-69223: Document that add_argument() returns an Action object#145538savannahostrowski merged 3 commits intopython:mainfrom
Conversation
|
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 phrase |
|
@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>
|
Thanks @Bortlesboat for the PR, and @savannahostrowski for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…pythonGH-145538) (cherry picked from commit b28e5f58ebf8d9badcc893cd189cb1575d4e3614) Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
…pythonGH-145538) (cherry picked from commit b28e5f5) Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
|
GH-145595 is a backport of this pull request to the 3.14 branch. |
|
GH-145596 is a backport of this pull request to the 3.13 branch. |
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/