Skip to content

Commit f32bf81

Browse files
committed
Schedule removal for 3.21
1 parent 4cb36cd commit f32bf81

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/deprecations/pending-removal-in-3.18.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pending removal in Python 3.18
99
* Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`,
1010
:class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty`
1111
now raise a :exc:`DeprecationWarning`.
12-
These classes will be removed in Python 3.18, instead
12+
These classes will be removed in Python 3.21, instead
1313
use :func:`abc.abstractmethod` with :func:`classmethod`,
1414
:func:`staticmethod`, and :class:`property` respectively.
1515

Doc/library/abc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ The :mod:`!abc` module also supports the following legacy decorators:
237237
.. decorator:: abstractclassmethod
238238

239239
.. versionadded:: 3.2
240-
.. deprecated-removed:: 3.3 3.18
240+
.. deprecated-removed:: 3.3 3.21
241241
It is now possible to use :class:`classmethod` with
242242
:func:`abstractmethod`, making this decorator redundant.
243243

@@ -258,7 +258,7 @@ The :mod:`!abc` module also supports the following legacy decorators:
258258
.. decorator:: abstractstaticmethod
259259

260260
.. versionadded:: 3.2
261-
.. deprecated-removed:: 3.3 3.18
261+
.. deprecated-removed:: 3.3 3.21
262262
It is now possible to use :class:`staticmethod` with
263263
:func:`abstractmethod`, making this decorator redundant.
264264

@@ -278,7 +278,7 @@ The :mod:`!abc` module also supports the following legacy decorators:
278278

279279
.. decorator:: abstractproperty
280280

281-
.. deprecated-removed:: 3.3 3.18
281+
.. deprecated-removed:: 3.3 3.21
282282
It is now possible to use :class:`property`, :meth:`property.getter`,
283283
:meth:`property.setter` and :meth:`property.deleter` with
284284
:func:`abstractmethod`, making this decorator redundant.

Doc/whatsnew/3.16.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Deprecated
144144
* Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`,
145145
:class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty`
146146
now raise a :exc:`DeprecationWarning`.
147-
These classes will be removed in Python 3.18, instead
147+
These classes will be removed in Python 3.21, instead
148148
use :func:`abc.abstractmethod` with :func:`classmethod`,
149149
:func:`staticmethod`, and :class:`property` respectively.
150150

Lib/abc.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ class C(ABC):
3636
def my_abstract_classmethod(cls, ...):
3737
...
3838
39-
.. deprecated-removed: 3.3 3.18
39+
.. deprecated-removed: 3.3 3.21
4040
4141
"""
4242

4343
__isabstractmethod__ = True
4444

4545
def __init__(self, callable):
4646
import warnings
47-
warnings._deprecated('abc.abstractclassmethod', remove=(3, 18))
47+
warnings._deprecated('abc.abstractclassmethod', remove=(3, 21))
4848
callable.__isabstractmethod__ = True
4949
super().__init__(callable)
5050

@@ -60,15 +60,15 @@ class C(ABC):
6060
def my_abstract_staticmethod(...):
6161
...
6262
63-
.. deprecated-removed: 3.3 3.18
63+
.. deprecated-removed: 3.3 3.21
6464
6565
"""
6666

6767
__isabstractmethod__ = True
6868

6969
def __init__(self, callable):
7070
import warnings
71-
warnings._deprecated('abc.abstractstaticmethod', remove=(3, 18))
71+
warnings._deprecated('abc.abstractstaticmethod', remove=(3, 21))
7272
callable.__isabstractmethod__ = True
7373
super().__init__(callable)
7474

@@ -84,7 +84,7 @@ class C(ABC):
8484
def my_abstract_property(self):
8585
...
8686
87-
.. deprecated-removed: 3.3 3.18
87+
.. deprecated-removed: 3.3 3.21
8888
8989
"""
9090

@@ -98,7 +98,7 @@ def __init__(
9898
doc=None,
9999
):
100100
import warnings
101-
warnings._deprecated('abc.abstractproperty', remove=(3, 18))
101+
warnings._deprecated('abc.abstractproperty', remove=(3, 21))
102102
super().__init__(fget, fset, fdel, doc)
103103

104104

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Raise :exc:`DeprecationWarning` on using :class:`abc.abstractclassmethod`,
22
:class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty`,
3-
schedule its removal for Python 3.18.
3+
schedule its removal for Python 3.21.

0 commit comments

Comments
 (0)