Skip to content

Commit c3cd440

Browse files
[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 3fe6148) Co-authored-by: Andre Delfino <[email protected]>
1 parent 9aa34f1 commit c3cd440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ Initially :pep:`484` defined Python static type system as using
402402
a class ``B`` is expected if and only if ``A`` is a subclass of ``B``.
403403

404404
This requirement previously also applied to abstract base classes, such as
405-
:class:`Iterable`. The problem with this approach is that a class had
405+
:class:`~collections.abc.Iterable`. The problem with this approach is that a class had
406406
to be explicitly marked to support them, which is unpythonic and unlike
407407
what one would normally do in idiomatic dynamically typed Python code.
408-
For example, this conforms to the :pep:`484`::
408+
For example, this conforms to :pep:`484`::
409409

410410
from typing import Sized, Iterable, Iterator
411411

0 commit comments

Comments
 (0)