mirror of https://github.com/python/cpython
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>
This commit is contained in:
parent
8e40ca127f
commit
7bafa0cf58
|
@ -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:
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add note about :pep:`585` in :mod:`collections.abc`.
|
Loading…
Reference in New Issue