]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98623: Fix base classes in `typing.rst` (#98626)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 25 Oct 2022 14:06:13 +0000 (17:06 +0300)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2022 14:06:13 +0000 (07:06 -0700)
Doc/library/typing.rst

index 886b5ca42dd91c82a2aad55b3e0db4a706098293..ead7835bfffa66eeec1927abd6ce7498e06d8313 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::