From 02096e47ae27335268014082986a81a64831df4a Mon Sep 17 00:00:00 2001 From: John Belmonte Date: Tue, 25 May 2021 17:30:34 +0900 Subject: [PATCH] bpo-42194: versionadded tag for argparse.BooleanOptionalAction --- Doc/library/argparse.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index b2eb9eff914c69..a1b4bd0fcfd170 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -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.