From 1c0e0c70a9e511120ee726cfcb904f827b5e3016 Mon Sep 17 00:00:00 2001 From: kovan Date: Fri, 27 Feb 2026 23:28:12 +0100 Subject: [PATCH] gh-69223: Document that add_argument returns an Action object Co-Authored-By: Claude Opus 4.6 --- Doc/library/argparse.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index ca4f439c345f32..d04d3f0631921a 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.