[Python-checkins] [doc] Fix link to abc.collections.Iterable (GH-22520)
Andre Delfino
webhook-mailer at python.org
Sat Oct 3 11:51:21 EDT 2020
https://github.com/python/cpython/commit/3fe614893742faee3c64e6d974e11329a496424f
commit: 3fe614893742faee3c64e6d974e11329a496424f
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-10-03T08:51:13-07:00
summary:
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 35e0445889b17..e2ae539d957e6 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
More information about the Python-checkins
mailing list