https://github.com/python/cpython/commit/b28e5f58ebf8d9badcc893cd189cb1575d4e3614
commit: b28e5f58ebf8d9badcc893cd189cb1575d4e3614
branch: main
author: Andrew Barnes <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-03-06T16:10:12Z
summary:
gh-69223: Document that add_argument() returns an Action object (#145538)
files:
M Doc/library/argparse.rst
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 8f31e815e0eb4b..5a463ee9821d61 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -698,6 +698,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]