[Python-checkins] bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026) (#27098)

ambv webhook-mailer at python.org
Mon Jul 12 12:23:43 EDT 2021


https://github.com/python/cpython/commit/c786988b19d7b6808d4c940f7206b95e49e06b71
commit: c786988b19d7b6808d4c940f7206b95e49e06b71
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-12T18:23:25+02:00
summary:

bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026) (#27098)

(cherry picked from commit da2e673c53974641a0e13941950e7976bbda64d5)

Co-authored-by: David Sanders <shang.xiao.sanders at gmail.com>

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index aa4713e75cd47..6c01667b96186 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.



More information about the Python-checkins mailing list