diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-05 19:54:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-05 19:54:12 -0700 |
| commit | e4b359de76e816f07109a7ecd47d6c690f0fa5b6 (patch) | |
| tree | 97259a04182a0297337a7f89bec98b740923ce82 | |
| parent | a708ae7470cf0abc58a62853c25d9bbc977f8cd1 (diff) | |
| download | cpython-git-e4b359de76e816f07109a7ecd47d6c690f0fa5b6.tar.gz | |
[3.9] [doc] Fix padding in some typing definitions (GH-22114) (GH-22115)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 2623868ede4ef3c848fc83a9b1e19e0d031dee1d)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
| -rw-r--r-- | Doc/library/typing.rst | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 9f98f8ce3f..6d6b76c1d0 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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`. @@ -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`. @@ -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`. @@ -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`. @@ -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`. @@ -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`. @@ -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`. |
