bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29067)

Signed-off-by: Filipe Laíns <lains@riseup.net>

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7bafa0cf58)
This commit is contained in:
Miss Islington (bot) 2021-10-19 11:41:33 -07:00 committed by GitHub
parent 8cef526a87
commit 092ec4b9d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View 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:

View file

@ -0,0 +1 @@
Add note about :pep:`585` in :mod:`collections.abc`.