python-iterutils 0.2.5.4__py3-none-any.whl → 0.2.5.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iterutils/__init__.py +6 -4
- {python_iterutils-0.2.5.4.dist-info → python_iterutils-0.2.5.5.dist-info}/METADATA +1 -1
- python_iterutils-0.2.5.5.dist-info/RECORD +7 -0
- python_iterutils-0.2.5.4.dist-info/RECORD +0 -7
- {python_iterutils-0.2.5.4.dist-info → python_iterutils-0.2.5.5.dist-info}/LICENSE +0 -0
- {python_iterutils-0.2.5.4.dist-info → python_iterutils-0.2.5.5.dist-info}/WHEEL +0 -0
iterutils/__init__.py
CHANGED
|
@@ -177,10 +177,8 @@ async def _run_gen_step_async_iter(gen: Generator, /) -> AsyncIterator:
|
|
|
177
177
|
ret: Any = send(None)
|
|
178
178
|
while True:
|
|
179
179
|
try:
|
|
180
|
-
if
|
|
181
|
-
value: Any =
|
|
182
|
-
else:
|
|
183
|
-
value = ret.value
|
|
180
|
+
if isinstance(ret, (Yield, YieldFrom)):
|
|
181
|
+
value: Any = ret.value
|
|
184
182
|
if isawaitable(value):
|
|
185
183
|
value = await value
|
|
186
184
|
if isinstance(ret, Yield):
|
|
@@ -191,6 +189,10 @@ async def _run_gen_step_async_iter(gen: Generator, /) -> AsyncIterator:
|
|
|
191
189
|
else:
|
|
192
190
|
for e in value:
|
|
193
191
|
yield e
|
|
192
|
+
elif isawaitable(ret):
|
|
193
|
+
value = await ret
|
|
194
|
+
else:
|
|
195
|
+
value = ret
|
|
194
196
|
except BaseException as e:
|
|
195
197
|
ret = throw(e)
|
|
196
198
|
else:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
2
|
+
iterutils/__init__.py,sha256=kl1R5zSu8uLPSyd0Yvv8IVKjx4iA0WWGiS2ioKua7yc,33830
|
|
3
|
+
iterutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
python_iterutils-0.2.5.5.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
5
|
+
python_iterutils-0.2.5.5.dist-info/METADATA,sha256=_L5FWThA3XcChxhSiv6to6okvzm3SUC0fJQPuU3G2vw,1429
|
|
6
|
+
python_iterutils-0.2.5.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
7
|
+
python_iterutils-0.2.5.5.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
2
|
-
iterutils/__init__.py,sha256=RdMUsfkgNEg9_5Lf4YNfCP8oB_PXJSdd_EHxeitP0Bk,33740
|
|
3
|
-
iterutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
python_iterutils-0.2.5.4.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
5
|
-
python_iterutils-0.2.5.4.dist-info/METADATA,sha256=fpaQOW9phx56FoA1NE19KlnqaJgYBrwhQGxeZHfxazs,1429
|
|
6
|
-
python_iterutils-0.2.5.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
7
|
-
python_iterutils-0.2.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|