]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047...
authorŁukasz Langa <lukasz@langa.pl>
Tue, 19 Oct 2021 18:50:09 +0000 (20:50 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 18:50:09 +0000 (20:50 +0200)
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 7bafa0cf586227987d3d662264d491e3780024b7)

Co-authored-by: Filipe Laíns <lains@riseup.net>
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 2345e78a17e4f573c9409d95e13dc3aaeecc631a..cb4f76709716960034ca47cb66e6f0be17443c34 100644 (file)
@@ -24,6 +24,9 @@ This module provides :term:`abstract base classes <abstract base class>` 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 (file)
index 0000000..fb81775
--- /dev/null
@@ -0,0 +1 @@
+Add note about :pep:`585` in :mod:`collections.abc`.