diff options
author | Filipe Laíns <lains@riseup.net> | 2021-10-19 18:18:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 18:18:50 (GMT) |
commit | 7bafa0cf586227987d3d662264d491e3780024b7 (patch) | |
tree | 6e5816801123dea7a7f7be25ea8706719a6edda1 /Doc/library/collections.abc.rst | |
parent | 8e40ca127fa92d6113617c80710e0a077977a84d (diff) | |
download | cpython-7bafa0cf586227987d3d662264d491e3780024b7.zip cpython-7bafa0cf586227987d3d662264d491e3780024b7.tar.gz cpython-7bafa0cf586227987d3d662264d491e3780024b7.tar.bz2 |
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047)
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Doc/library/collections.abc.rst')
-rw-r--r-- | Doc/library/collections.abc.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index 07df187..132b0ce 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: |