Skip to content

[3.9] [doc] Fix padding in some typing definitions (GH-22114) #22115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ Corresponding to collections in :mod:`collections.abc`

.. class:: AbstractSet(Sized, Collection[T_co])

A generic version of :class:`collections.abc.Set`.
A generic version of :class:`collections.abc.Set`.

.. deprecated:: 3.9
:class:`collections.abc.Set` now supports ``[]``. See :pep:`585`.
Expand Down Expand Up @@ -1224,7 +1224,7 @@ Corresponding to collections in :mod:`collections.abc`

.. class:: Container(Generic[T_co])

A generic version of :class:`collections.abc.Container`.
A generic version of :class:`collections.abc.Container`.

.. deprecated:: 3.9
:class:`collections.abc.Container` now supports ``[]``. See :pep:`585`.
Expand All @@ -1245,11 +1245,11 @@ Corresponding to collections in :mod:`collections.abc`

.. class:: Mapping(Sized, Collection[KT], Generic[VT_co])

A generic version of :class:`collections.abc.Mapping`.
This type can be used as follows::
A generic version of :class:`collections.abc.Mapping`.
This type can be used as follows::

def get_position_in_index(word_list: Mapping[str, int], word: str) -> int:
return word_list[word]
def get_position_in_index(word_list: Mapping[str, int], word: str) -> int:
return word_list[word]

.. deprecated:: 3.9
:class:`collections.abc.Mapping` now supports ``[]``. See :pep:`585`.
Expand All @@ -1263,7 +1263,7 @@ Corresponding to collections in :mod:`collections.abc`

.. class:: MutableMapping(Mapping[KT, VT])

A generic version of :class:`collections.abc.MutableMapping`.
A generic version of :class:`collections.abc.MutableMapping`.

.. deprecated:: 3.9
:class:`collections.abc.MutableMapping` now supports ``[]``. See :pep:`585`.
Expand All @@ -1277,14 +1277,14 @@ Corresponding to collections in :mod:`collections.abc`

.. class:: MutableSet(AbstractSet[T])

A generic version of :class:`collections.abc.MutableSet`.
A generic version of :class:`collections.abc.MutableSet`.

.. deprecated:: 3.9
:class:`collections.abc.MutableSet` now supports ``[]``. See :pep:`585`.

.. class:: Sequence(Reversible[T_co], Collection[T_co])

A generic version of :class:`collections.abc.Sequence`.
A generic version of :class:`collections.abc.Sequence`.

.. deprecated:: 3.9
:class:`collections.abc.Sequence` now supports ``[]``. See :pep:`585`.
Expand All @@ -1301,14 +1301,14 @@ Corresponding to other types in :mod:`collections.abc`

.. class:: Iterable(Generic[T_co])

A generic version of :class:`collections.abc.Iterable`.
A generic version of :class:`collections.abc.Iterable`.

.. deprecated:: 3.9
:class:`collections.abc.Iterable` now supports ``[]``. See :pep:`585`.

.. class:: Iterator(Iterable[T_co])

A generic version of :class:`collections.abc.Iterator`.
A generic version of :class:`collections.abc.Iterator`.

.. deprecated:: 3.9
:class:`collections.abc.Iterator` now supports ``[]``. See :pep:`585`.
Expand Down Expand Up @@ -1353,7 +1353,7 @@ Corresponding to other types in :mod:`collections.abc`

.. class:: Reversible(Iterable[T_co])

A generic version of :class:`collections.abc.Reversible`.
A generic version of :class:`collections.abc.Reversible`.

.. deprecated:: 3.9
:class:`collections.abc.Reversible` now supports ``[]``. See :pep:`585`.
Expand Down