Skip to content

Commit d938751

Browse files
authored
Merge pull request peterhinch#73 from fivdi/patch-1
Update description of __aiter__
2 parents dae2062 + aebcbd5 commit d938751

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

v3/docs/TUTORIAL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,7 @@ and could be used as a means of retrieving successive data items as they arrive
14101410
from a read-only device. An asynchronous iterable calls asynchronous code in
14111411
its `next` method. The class must conform to the following requirements:
14121412

1413-
* It has an `__aiter__` method defined with `async def`and returning the
1414-
asynchronous iterator.
1413+
* It has an `__aiter__` method returning the asynchronous iterator.
14151414
* It has an ` __anext__` method which is a task - i.e. defined with
14161415
`async def` and containing at least one `await` statement. To stop
14171416
iteration it must raise a `StopAsyncIteration` exception.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy