From 1b409d7a7d6b5f263e5627441c5d3a5433441c73 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 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.