diff options
author | David Sanders <shang.xiao.sanders@gmail.com> | 2021-07-12 15:19:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 15:19:54 (GMT) |
commit | da2e673c53974641a0e13941950e7976bbda64d5 (patch) | |
tree | 213b3a326279fcede993eb7055a05ba9ca32e616 /Doc/library | |
parent | 66c5853406bbcccecf35372795078c0641a5f385 (diff) | |
download | cpython-da2e673c53974641a0e13941950e7976bbda64d5.zip cpython-da2e673c53974641a0e13941950e7976bbda64d5.tar.gz cpython-da2e673c53974641a0e13941950e7976bbda64d5.tar.bz2 |
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026)
Diffstat (limited to 'Doc/library')
-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 b2eb9ef..a1b4bd0 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. |