Fix typo in collections.abc docs example (#113310)

Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self"
This commit is contained in:
David Greaves 2023-12-20 09:51:16 +00:00 committed by GitHub
parent 4afa7be32d
commit 22b8945d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ the required methods (unless those methods have been set to
class E: class E:
def __iter__(self): ... def __iter__(self): ...
def __next__(next): ... def __next__(self): ...
.. doctest:: .. doctest::