https://github.com/python/cpython/commit/5fa025aebe8d47a9ca56d5acbb7bb80898809de0
commit: 5fa025aebe8d47a9ca56d5acbb7bb80898809de0
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-03-15T14:08:21Z
summary:

[3.14] gh-69223: Document that add_argument() returns an Action object 
(GH-145538) (#145595)

Co-authored-by: Andrew Barnes <[email protected]>

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 2b2bf0a9d6eca8..622f116bbee2ea 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -691,6 +691,8 @@ The add_argument() method
 
    * deprecated_ - Whether or not use of the argument is deprecated.
 
+   The method returns an :class:`Action` object representing the argument.
+
 The following sections describe how each of these are used.
 
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to