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

Skip to content
8000

Commit c786988

Browse files
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026) (#27098)
(cherry picked from commit da2e673) Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
1 parent 489c273 commit c786988

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