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:
Miss Islington (bot) 2022-10-25 07:15:07 -07:00 committed by GitHub
parent 750e504800
commit 3e335f2c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1752,7 +1752,7 @@ Abstract Base Classes
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`.
@ -1808,7 +1808,7 @@ Corresponding to collections in :mod:`collections.abc`
:class:`collections.abc.KeysView` now supports subscripting (``[]``).
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`.
This type can be used as follows::