[Python-checkins] [3.8] [doc] Fix link to abc.collections.Iterable (GH-22502) (#22504)

Andre Delfino webhook-mailer at python.org
Sun Oct 11 13:32:23 EDT 2020


https://github.com/python/cpython/commit/b15fff620f8e7ef3353300dff69706e300123cab
commit: b15fff620f8e7ef3353300dff69706e300123cab
branch: 3.8
author: Andre Delfino <adelfino at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-10-11T10:32:02-07:00
summary:

[3.8] [doc] Fix link to abc.collections.Iterable (GH-22502) (#22504)

Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit d4b9edd5052a2d9ae3d2be69975cc933afb37737)

Co-authored-by: Andre Delfino <adelfino at gmail.com>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 9785f79287674..351c0bee75c83 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1167,7 +1167,7 @@ The module defines the following classes, functions and decorators:
    Such a protocol can be used with :func:`isinstance` and :func:`issubclass`.
    This raises :exc:`TypeError` when applied to a non-protocol class.  This
    allows a simple-minded structural check, very similar to "one trick ponies"
-   in :mod:`collections.abc` such as :class:`Iterable`.  For example::
+   in :mod:`collections.abc` such as :class:`~collections.abc.Iterable`.  For example::
 
       @runtime_checkable
       class Closable(Protocol):



More information about the Python-checkins mailing list