gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() (GH-125563)

This commit is contained in:
Savannah Ostrowski 2024-10-17 02:11:47 -07:00 committed by GitHub
parent 624be8699a
commit 7b04496e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 2 deletions

View file

@ -4,8 +4,13 @@ Pending removal in future versions
The following APIs will be removed in the future,
although there is currently no date scheduled for their removal.
* :mod:`argparse`: Nesting argument groups and nesting mutually exclusive
groups are deprecated.
* :mod:`argparse`:
* Nesting argument groups and nesting mutually exclusive
groups are deprecated.
* Passing the undocumented keyword argument *prefix_chars* to
:meth:`~argparse.ArgumentParser.add_argument_group` is now
deprecated.
* :mod:`array`'s ``'u'`` format code (:gh:`57281`)

View file

@ -1894,6 +1894,10 @@ Argument groups
The function exists on the API by accident through inheritance and
will be removed in the future.
.. deprecated:: 3.14
Passing prefix_chars_ to :meth:`add_argument_group`
is now deprecated.
Mutual exclusion
^^^^^^^^^^^^^^^^

View file

@ -428,6 +428,12 @@ asyncio
Deprecated
==========
* :mod:`argparse`:
Passing the undocumented keyword argument *prefix_chars* to
:meth:`~argparse.ArgumentParser.add_argument_group` is now
deprecated.
(Contributed by Savannah Ostrowski in :gh:`125563`.)
* :mod:`asyncio`:
:func:`!asyncio.iscoroutinefunction` is deprecated
and will be removed in Python 3.16,