From 092ec4b9d144c493cb514df0978638fdd2d9622a Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 19 Oct 2021 11:41:33 -0700 Subject: bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29067) 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) --- 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 0abc87f919..2c941b4774 100644 --- a/Doc/library/collections.abc.rst +++ b/Doc/library/collections.abc.rst @@ -104,6 +104,9 @@ example, knowing that a class supplies ``__getitem__``, ``__len__``, and ``__iter__`` is insufficient for distinguishing a :class:`Sequence` from a :class:`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 0000000000..fb817757a1 --- /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 v1.2.1