]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix link to abc.collections.Iterable (GH-22520)
authorAndre Delfino <adelfino@gmail.com>
Sat, 3 Oct 2020 15:51:13 +0000 (12:51 -0300)
committerGitHub <noreply@github.com>
Sat, 3 Oct 2020 15:51:13 +0000 (08:51 -0700)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".

Automerge-Triggered-By: @gvanrossum
Doc/library/typing.rst

index 35e0445889b17215f72a05413f911930768058b2..e2ae539d957e6d1991cecb09c169eda06b4c4832 100644 (file)
@@ -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