gh-98500: Fix typing docs for `*View` classes (#98511)

This commit is contained in:
Nikita Sobolev 2022-10-24 20:47:32 +03:00 committed by GitHub
parent c5a9d3f67f
commit 1a217f9ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -2096,7 +2096,7 @@ Corresponding to collections in :mod:`collections.abc`
:class:`collections.abc.Container` now supports ``[]``. See :pep:`585` :class:`collections.abc.Container` now supports ``[]``. See :pep:`585`
and :ref:`types-genericalias`. 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`. 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` :class:`collections.abc.ItemsView` now supports ``[]``. See :pep:`585`
and :ref:`types-genericalias`. 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`. 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` :class:`collections.abc.Mapping` now supports ``[]``. See :pep:`585`
and :ref:`types-genericalias`. and :ref:`types-genericalias`.
.. class:: MappingView(Sized, Iterable[T_co]) .. class:: MappingView(Sized)
A generic version of :class:`collections.abc.MappingView`. 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` :class:`collections.abc.Sequence` now supports ``[]``. See :pep:`585`
and :ref:`types-genericalias`. and :ref:`types-genericalias`.
.. class:: ValuesView(MappingView[VT_co]) .. class:: ValuesView(MappingView, Collection[_VT_co])
A generic version of :class:`collections.abc.ValuesView`. A generic version of :class:`collections.abc.ValuesView`.