10000 bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalActio… · python/cpython@da2e673 · GitHub
[go: up one dir, main page]

Skip to content

Commit da2e673

Browse files
authored
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026)
1 parent 66c5853 commit da2e673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ is available in ``argparse`` and adds support for boolean actions such as
853853
>>> parser.parse_args(['--no-foo'])
854854
Namespace(foo=False)
855855

856+
.. versionadded:: 3.9
857+
856858
The recommended way to create a custom action is to extend :class:`Action`,
857859
overriding the ``__call__`` method and optionally the ``__init__`` and
858860
``format_usage`` methods.

0 commit comments

Comments
 (0)
0