Skip to content

Commit

Permalink
pythongh-98623: Fix base classes in typing.rst (pythonGH-98626)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5076108)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Oct 25, 2022
1 parent a86a7b8 commit 6991bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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::
Expand Down

0 comments on commit 6991bee

Please sign in to comment.