From: Nikita Sobolev Date: Tue, 25 Oct 2022 14:06:13 +0000 (+0300) Subject: gh-98623: Fix base classes in `typing.rst` (#98626) X-Git-Tag: v3.12.0a2~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5076108872df07592931cd27efac4a4496aba2e8;p=thirdparty%2FPython%2Fcpython.git gh-98623: Fix base classes in `typing.rst` (#98626) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 886b5ca42dd9..ead7835bfffa 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::