]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98623: Fix base classes in `typing.rst` (GH-98626)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Oct 2022 14:13:16 +0000 (07:13 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2022 14:13:16 +0000 (07:13 -0700)
(cherry picked from commit 5076108872df07592931cd27efac4a4496aba2e8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/library/typing.rst

index d49bae8cc2f32c8ac54250ddd29cd183784c1a9e..353e7eb1ca87351ab6f6289f32484c9454638fa2 100644 (file)
@@ -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::