File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,13 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
70
70
71
71
if sys .version_info >= (3 , 10 ):
72
72
anext = builtins .anext
73
+ aiter = builtins .aiter
73
74
else :
74
75
75
76
async def anext (cls : Any ) -> Any :
76
77
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
77
78
return await cls .__anext__ ()
79
+
80
+ async def aiter (cls : Any ) -> Any :
81
+ """Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
82
+ return await cls .__aiter__ ()
Original file line number Diff line number Diff line change @@ -70,8 +70,13 @@ def inner(*args: Any, **kwargs: Any) -> Any:
70
70
71
71
if sys .version_info >= (3 , 10 ):
72
72
next = builtins .next
73
+ iter = builtins .iter
73
74
else :
74
75
75
76
def next (cls : Any ) -> Any :
76
77
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""
77
78
return cls .__next__ ()
79
+
80
+ def iter (cls : Any ) -> Any :
81
+ """Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""
82
+ return cls .__iter__ ()
You can’t perform that action at this time.
0 commit comments