Skip to content

Commit 3e335f2

Browse files
gh-98623: Fix base classes in typing.rst (GH-98626)
(cherry picked from commit 5076108) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 750e504 commit 3e335f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ Abstract Base Classes
17521752
Corresponding to collections in :mod:`collections.abc`
17531753
""""""""""""""""""""""""""""""""""""""""""""""""""""""
17541754

1755-
.. class:: AbstractSet(Sized, Collection[T_co])
1755+
.. class:: AbstractSet(Collection[T_co])
17561756

17571757
A generic version of :class:`collections.abc.Set`.
17581758

@@ -1808,7 +1808,7 @@ Corresponding to collections in :mod:`collections.abc`
18081808
:class:`collections.abc.KeysView` now supports subscripting (``[]``).
18091809
See :pep:`585` and :ref:`types-genericalias`.
18101810

1811-
.. class:: Mapping(Sized, Collection[KT], Generic[VT_co])
1811+
.. class:: Mapping(Collection[KT], Generic[KT, VT_co])
18121812

18131813
A generic version of :class:`collections.abc.Mapping`.
18141814
This type can be used as follows::

0 commit comments

Comments
 (0)