From b28e5f58ebf8d9badcc893cd189cb1575d4e3614 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 (#145538) --- Doc/library/argparse.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 8f31e815e0eb..5a463ee9821d 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. -- 2.47.3