From f1c27bebb258d8ad8613026ed297d117bb8b2777 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 20 Dec 2023 10:57:25 +0100 Subject: [PATCH] [3.11] Fix typo in collections.abc docs example (GH-113310) (#113312) Fix typo in collections.abc docs example (GH-113310) Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self" (cherry picked from commit 22b8945d7678be86f801ca54f004a5dba2006835) Co-authored-by: David Greaves --- 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 3626757895fb..0b05899d05a2 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:: -- 2.47.3