diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-03 16:13:14 (GMT) |
---|---|---|
committer | Ćukasz Langa <lukasz@langa.pl> | 2020-10-04 15:30:49 (GMT) |
commit | d96078b5e4f26462becbc07b862ee357c46c8f7e (patch) | |
tree | 60ad7e8750e05ce81e4a4c87994a6d9c644c7548 | |
parent | faaa30392221c7d53d995f65f59f26e86fb84d76 (diff) | |
download | cpython-d96078b5e4f26462becbc07b862ee357c46c8f7e.zip cpython-d96078b5e4f26462becbc07b862ee357c46c8f7e.tar.gz cpython-d96078b5e4f26462becbc07b862ee357c46c8f7e.tar.bz2 |
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 3fe614893742faee3c64e6d974e11329a496424f)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
-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 a4343d7..bd6814f 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -406,10 +406,10 @@ Initially :pep:`484` defined Python static type system as using a class ``B`` is expected if and only if ``A`` is a subclass of ``B``. This requirement previously also applied to abstract base classes, such as -:class:`Iterable`. The problem with this approach is that a class had +:class:`~collections.abc.Iterable`. The problem with this approach is that a class had to be explicitly marked to support them, which is unpythonic and unlike what one would normally do in idiomatic dynamically typed Python code. -For example, this conforms to the :pep:`484`:: +For example, this conforms to :pep:`484`:: from collections.abc import Sized, Iterable, Iterator |