From 9a9ce40d6116cded5fa44aed73921bad4bb54bca Mon Sep 17 00:00:00 2001 From: Andrew Barnes Date: Fri, 6 Mar 2026 11:10:12 -0500 Subject: [PATCH] gh-69223: Document that add_argument() returns an Action object (GH-145538) (cherry picked from commit b28e5f58ebf8d9badcc893cd189cb1575d4e3614) Co-authored-by: Andrew Barnes --- Doc/library/argparse.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index d8c7776ee41f4e..c1df9c25450cca 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -613,6 +613,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.