Skip to content

Commit 5076108

Browse files
authored
gh-98623: Fix base classes in typing.rst (#98626)
1 parent 45c8935 commit 5076108

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
@@ -2057,7 +2057,7 @@ Abstract Base Classes
20572057
Corresponding to collections in :mod:`collections.abc`
20582058
""""""""""""""""""""""""""""""""""""""""""""""""""""""
20592059

2060-
.. class:: AbstractSet(Sized, Collection[T_co])
2060+
.. class:: AbstractSet(Collection[T_co])
20612061

20622062
A generic version of :class:`collections.abc.Set`.
20632063

@@ -2113,7 +2113,7 @@ Corresponding to collections in :mod:`collections.abc`
21132113
:class:`collections.abc.KeysView` now supports subscripting (``[]``).
21142114
See :pep:`585` and :ref:`types-genericalias`.
21152115

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

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

0 commit comments

Comments
 (0)