]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047)
authorFilipe Laíns <lains@riseup.net>
Tue, 19 Oct 2021 18:18:50 +0000 (19:18 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 18:18:50 +0000 (20:18 +0200)
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Doc/library/collections.abc.rst
Misc/NEWS.d/next/Documentation/2021-10-19-01-41-40.bpo-45449.fjHZJc.rst [new file with mode: 0644]

index 07df1873bba5884e33dd62b665b81dd3d964b1ec..132b0ce7192ac178d6e99851b61a7407945ea9d0 100644 (file)
@@ -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 (file)
index 0000000..fb81775
--- /dev/null
@@ -0,0 +1 @@
+Add note about :pep:`585` in :mod:`collections.abc`.