From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 20 Dec 2023 09:57:48 +0000 (+0100) Subject: [3.12] Fix typo in collections.abc docs example (GH-113310) (#113311) X-Git-Tag: v3.12.2~287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68743e4473b91e746e3f9d5ffac5f850c142b379;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix typo in collections.abc docs example (GH-113310) (#113311) 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 --- diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index e0c72ff9249e..582bb18f752b 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::