diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-10-25 14:06:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 14:06:13 (GMT) |
commit | 5076108872df07592931cd27efac4a4496aba2e8 (patch) | |
tree | 66b538430b5944dde1b68b013385f76dfc628de8 /Doc | |
parent | 45c89358b71e4638455e75ba6e60b42c511bbc2a (diff) | |
download | cpython-5076108872df07592931cd27efac4a4496aba2e8.zip cpython-5076108872df07592931cd27efac4a4496aba2e8.tar.gz cpython-5076108872df07592931cd27efac4a4496aba2e8.tar.bz2 |
gh-98623: Fix base classes in `typing.rst` (#98626)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 886b5ca..ead7835 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:: |