summaryrefslogtreecommitdiffstats
path: root/Doc/library/typing.rst
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-10-03 15:51:13 (GMT)
committerGitHub <noreply@github.com>2020-10-03 15:51:13 (GMT)
commit3fe614893742faee3c64e6d974e11329a496424f (patch)
tree0450356d39529292d12cd1bce83824ede7382454 /Doc/library/typing.rst
parentebbe8033b1c61854c4b623aaf9c3e170d179f875 (diff)
downloadcpython-3fe614893742faee3c64e6d974e11329a496424f.zip
cpython-3fe614893742faee3c64e6d974e11329a496424f.tar.gz
cpython-3fe614893742faee3c64e6d974e11329a496424f.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
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r--Doc/library/typing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 35e0445..e2ae539 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