]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 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:23 +0000 (15:08 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2026 14:08:23 +0000 (14:08 +0000)
Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
Doc/library/argparse.rst

index d8c7776ee41f4ed10c0cf898a3c621b643c146f0..c1df9c25450cca7af795e0290d47c37d3ba6766a 100644 (file)
@@ -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.