Skip to content

Commit 7bafa0c

Browse files
FFY00ambv
andauthored
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047)
Signed-off-by: Filipe Laíns <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
1 parent 8e40ca1 commit 7bafa0c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Doc/library/collections.abc.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ example, knowing that a class supplies ``__getitem__``, ``__len__``, and
104104
``__iter__`` is insufficient for distinguishing a :class:`Sequence` from
105105
a :class:`Mapping`.
106106

107+
.. versionadded:: 3.9
108+
These abstract classes now support ``[]``. See :ref:`types-genericalias`
109+
and :pep:`585`.
107110

108111
.. _collections-abstract-base-classes:
109112

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add note about :pep:`585` in :mod:`collections.abc`.

0 commit comments

Comments
 (0)