]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026)
authorDavid Sanders <shang.xiao.sanders@gmail.com>
Mon, 12 Jul 2021 15:19:54 +0000 (01:19 +1000)
committerGitHub <noreply@github.com>
Mon, 12 Jul 2021 15:19:54 +0000 (17:19 +0200)
Doc/library/argparse.rst

index b2eb9eff914c696de77f0ebb72ed407cf50ef238..a1b4bd0fcfd17070f6f236ed4ee89d79fb78131b 100644 (file)
@@ -853,6 +853,8 @@ is available in ``argparse`` and adds support for boolean actions such as
     >>> parser.parse_args(['--no-foo'])
     Namespace(foo=False)
 
+.. versionadded:: 3.9
+
 The recommended way to create a custom action is to extend :class:`Action`,
 overriding the ``__call__`` method and optionally the ``__init__`` and
 ``format_usage`` methods.