Skip to content

Commit

Permalink
_get_loop must return a loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Apr 21, 2024
1 parent 2411640 commit b8358c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zarr/v3/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def sync(coro: Coroutine[Any, Any, T], loop: asyncio.AbstractEventLoop | None =
return return_result


def _get_loop() -> asyncio.AbstractEventLoop | None:
def _get_loop() -> asyncio.AbstractEventLoop:
"""Create or return the default fsspec IO loop
The loop will be running on a separate thread.
Expand All @@ -105,6 +105,7 @@ def _get_loop() -> asyncio.AbstractEventLoop | None:
th.daemon = True
th.start()
iothread[0] = th
assert loop[0] is not None
return loop[0]


Expand Down

0 comments on commit b8358c3

Please sign in to comment.