summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-25 14:13:16 (GMT)
committerGitHub <noreply@github.com>2022-10-25 14:13:16 (GMT)
commit4b68e34a6c483582000cea69db526ff266abf61c (patch)
tree5f3bd9e0d255d1e9a00204cd962690b5da505461
parent65f9c8e6dda177925346b8e846995cd5b1552167 (diff)
downloadcpython-4b68e34a6c483582000cea69db526ff266abf61c.zip
cpython-4b68e34a6c483582000cea69db526ff266abf61c.tar.gz
cpython-4b68e34a6c483582000cea69db526ff266abf61c.tar.bz2
gh-98623: Fix base classes in `typing.rst` (GH-98626)
(cherry picked from commit 5076108872df07592931cd27efac4a4496aba2e8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
-rw-r--r--Doc/library/typing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index d49bae8..353e7eb 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2057,7 +2057,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`.
@@ -2113,7 +2113,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::