Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d96078b

Browse filesBrowse files
miss-islingtonandresdelfino
authored andcommitted
[doc] Fix link to abc.collections.Iterable (pythonGH-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 <adelfino@gmail.com>
1 parent faaa303 commit d96078b
Copy full SHA for d96078b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎Doc/library/typing.rst

Copy file name to clipboardExpand all lines: Doc/library/typing.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@ Initially :pep:`484` defined Python static type system as using
406406
a class ``B`` is expected if and only if ``A`` is a subclass of ``B``.
407407

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

414414
from collections.abc import Sized, Iterable, Iterator
415415

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.