From cf856b8102b6673db6330e3a2740b6dc4fd79a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sat, 3 Oct 2020 12:27:37 -0300 Subject: [PATCH] Fix link to abc.collections.Iterable --- Doc/library/typing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 35e0445889b172..e2ae539d957e6d 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