[Python-checkins] gh-98623: Fix base classes in `typing.rst` (GH-98626)

miss-islington webhook-mailer at python.org
Tue Oct 25 10:15:15 EDT 2022


https://github.com/python/cpython/commit/3e335f2c0de9b7fab542a18d603f5bbdb1fb2ef3
commit: 3e335f2c0de9b7fab542a18d603f5bbdb1fb2ef3
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-25T07:15:07-07:00
summary:

gh-98623: Fix base classes in `typing.rst` (GH-98626)

(cherry picked from commit 5076108872df07592931cd27efac4a4496aba2e8)

Co-authored-by: Nikita Sobolev <mail at sobolevn.me>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index de63735ed0f1..7a93b875c742 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -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`.
 
@@ -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::



More information about the Python-checkins mailing list