Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kramstrom committed Dec 3, 2024
1 parent c6c978f commit 4019afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal/_utils/async_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ async def __aexit__(self, exc, exc_type, tb):
await self.agen.aclose()


async def sync_or_async_iter(iter: Union[Iterable[T], AsyncIterator[T, None]]) -> AsyncGenerator[T, None]:
async def sync_or_async_iter(iter: Union[Iterable[T], AsyncIterator[T]]) -> AsyncGenerator[T, None]:
if hasattr(iter, "__aiter__"):
agen = typing.cast(AsyncGenerator[T, None], iter)
try:
Expand Down

0 comments on commit 4019afe

Please sign in to comment.