diff options
author | David Sanders <shang.xiao.sanders@gmail.com> | 2021-07-13 01:19:54 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 17:19:54 +0200 |
commit | da2e673c53974641a0e13941950e7976bbda64d5 (patch) | |
tree | 213b3a326279fcede993eb7055a05ba9ca32e616 | |
parent | 66c5853406bbcccecf35372795078c0641a5f385 (diff) | |
download | cpython-git-da2e673c53974641a0e13941950e7976bbda64d5.tar.gz |
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026)
-rw-r--r-- | Doc/library/argparse.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index b2eb9eff91..a1b4bd0fcf 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. |