diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-10-24 17:47:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 17:47:32 (GMT) |
commit | 1a217f9ffc6d014536c08d7fb0136d117b8a0add (patch) | |
tree | 65320ee25646c62cae846c9d49c003b17fd42da8 /Doc | |
parent | c5a9d3f67fc4b62543ddf6bc7b9ed392c2a81ec3 (diff) | |
download | cpython-1a217f9ffc6d014536c08d7fb0136d117b8a0add.zip cpython-1a217f9ffc6d014536c08d7fb0136d117b8a0add.tar.gz cpython-1a217f9ffc6d014536c08d7fb0136d117b8a0add.tar.bz2 |
gh-98500: Fix typing docs for `*View` classes (#98511)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/typing.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ae7e223..53690ec 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2096,7 +2096,7 @@ Corresponding to collections in :mod:`collections.abc` :class:`collections.abc.Container` now supports ``[]``. See :pep:`585` and :ref:`types-genericalias`. -.. class:: ItemsView(MappingView, Generic[KT_co, VT_co]) +.. class:: ItemsView(MappingView, AbstractSet[tuple[KT_co, VT_co]]) A generic version of :class:`collections.abc.ItemsView`. @@ -2104,7 +2104,7 @@ Corresponding to collections in :mod:`collections.abc` :class:`collections.abc.ItemsView` now supports ``[]``. See :pep:`585` and :ref:`types-genericalias`. -.. class:: KeysView(MappingView[KT_co], AbstractSet[KT_co]) +.. class:: KeysView(MappingView, AbstractSet[KT_co]) A generic version of :class:`collections.abc.KeysView`. @@ -2124,7 +2124,7 @@ Corresponding to collections in :mod:`collections.abc` :class:`collections.abc.Mapping` now supports ``[]``. See :pep:`585` and :ref:`types-genericalias`. -.. class:: MappingView(Sized, Iterable[T_co]) +.. class:: MappingView(Sized) A generic version of :class:`collections.abc.MappingView`. @@ -2164,7 +2164,7 @@ Corresponding to collections in :mod:`collections.abc` :class:`collections.abc.Sequence` now supports ``[]``. See :pep:`585` and :ref:`types-genericalias`. -.. class:: ValuesView(MappingView[VT_co]) +.. class:: ValuesView(MappingView, Collection[_VT_co]) A generic version of :class:`collections.abc.ValuesView`. |