From a18e4e9c15a0be833e01c3892206661fc91e6918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Tue, 19 Oct 2021 20:50:09 +0200 Subject: [3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29068) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe Laíns Co-authored-by: Łukasz Langa . (cherry picked from commit 7bafa0cf586227987d3d662264d491e3780024b7) Co-authored-by: Filipe Laíns --- Doc/library/collections.abc.rst | 3 +++ .../NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst | 1 + 2 files changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index 2345e78..cb4f767 100644 --- a/Doc/library/collections.abc.rst +++ b/Doc/library/collections.abc.rst @@ -24,6 +24,9 @@ This module provides :term:`abstract base classes ` that can be used to test whether a class provides a particular interface; for example, whether it is hashable or whether it is a mapping. +.. versionadded:: 3.9 + These abstract classes now support ``[]``. See :ref:`types-genericalias` + and :pep:`585`. .. _collections-abstract-base-classes: diff --git a/Misc/NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst b/Misc/NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst new file mode 100644 index 0000000..fb81775 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst @@ -0,0 +1 @@ +Add note about :pep:`585` in :mod:`collections.abc`. -- cgit v0.12