We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 706a2b0 commit b303065Copy full SHA for b303065
tests/subscription/test_map_async_iterator.py
@@ -6,9 +6,13 @@
6
from graphql.subscription.map_async_iterator import MapAsyncIterator
7
8
9
-async def anext(iterable):
10
- """Return the next item from an async iterator."""
11
- return await iterable.__anext__()
+try: # pragma: nocover
+ anext
+except NameError: # pragma: nocover (Python < 3.10)
12
+ # noinspection PyShadowingBuiltins
13
+ async def anext(iterator):
14
+ """Return the next item from an async iterator."""
15
+ return await iterator.__anext__()
16
17
18
def describe_map_async_iterator():
0 commit comments