From a9e26097878364a6bb1e11c2de0cf379ee5fe5f9 Mon Sep 17 00:00:00 2001 From: David Greaves Date: Wed, 20 Dec 2023 09:37:08 +0000 Subject: [PATCH] Update collections.abc.rst to fix typo in signature Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self" --- Doc/library/collections.abc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index e0c72ff9249ee7..582bb18f752bd5 100644 --- a/Doc/library/collections.abc.rst +++ b/Doc/library/collections.abc.rst @@ -87,7 +87,7 @@ the required methods (unless those methods have been set to class E: def __iter__(self): ... - def __next__(next): ... + def __next__(self): ... .. doctest::