]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-69223: Document that add_argument() returns an Action object (GH-145538...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 15 Mar 2026 14:08:21 +0000 (15:08 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2026 14:08:21 +0000 (14:08 +0000)
Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
Doc/library/argparse.rst

index 2b2bf0a9d6eca80dc3ba796e1aa0087bbedbde53..622f116bbee2ea556f9fe310f7f4a08a75d3055b 100644 (file)
@@ -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.