Skip to content

Commit 6ebcef5

Browse files
authored
Fix generator type annotations. (#6)
1 parent 23c506c commit 6ebcef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slipstream/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ async def _handler(msg: Any, **kwargs: Any):
382382

383383
# Process regular generator
384384
if isinstance(output, Generator):
385-
for val in cast(Generator[Any], output):
385+
for val in cast(Generator[Any, Any, Any], output):
386386
for s in sink:
387387
await _sink_output(f, s, val)
388388
return

0 commit comments

Comments
 (0)