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
miss-islington and sobolevn authored Oct 25, 2022
1 parent 750e504 commit 3e335f2
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 3e335f2

Please sign in to comment.