mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
gh-98623: Fix base classes in typing.rst
(GH-98626)
(cherry picked from commit 5076108872
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
65f9c8e6dd
commit
4b68e34a6c
1 changed files with 2 additions and 2 deletions
|
@ -2057,7 +2057,7 @@ Abstract Base Classes
|
||||||
Corresponding to collections in :mod:`collections.abc`
|
Corresponding to collections in :mod:`collections.abc`
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
.. class:: AbstractSet(Sized, Collection[T_co])
|
.. class:: AbstractSet(Collection[T_co])
|
||||||
|
|
||||||
A generic version of :class:`collections.abc.Set`.
|
A generic version of :class:`collections.abc.Set`.
|
||||||
|
|
||||||
|
@ -2113,7 +2113,7 @@ Corresponding to collections in :mod:`collections.abc`
|
||||||
:class:`collections.abc.KeysView` now supports subscripting (``[]``).
|
:class:`collections.abc.KeysView` now supports subscripting (``[]``).
|
||||||
See :pep:`585` and :ref:`types-genericalias`.
|
See :pep:`585` and :ref:`types-genericalias`.
|
||||||
|
|
||||||
.. class:: Mapping(Sized, Collection[KT], Generic[VT_co])
|
.. class:: Mapping(Collection[KT], Generic[KT, VT_co])
|
||||||
|
|
||||||
A generic version of :class:`collections.abc.Mapping`.
|
A generic version of :class:`collections.abc.Mapping`.
|
||||||
This type can be used as follows::
|
This type can be used as follows::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue