Skip to content

Commit d41cae3

Browse files
stainless-botstainless-app[bot]
authored andcommitted
chore(client): use anyio.sleep instead of asyncio.sleep (#300)
1 parent 964faa1 commit d41cae3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/finch/_resource.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
from __future__ import annotations
44

55
import time
6-
import asyncio
76
from typing import TYPE_CHECKING
87

8+
import anyio
9+
910
if TYPE_CHECKING:
1011
from ._client import Finch, AsyncFinch
1112

@@ -39,4 +40,4 @@ def __init__(self, client: AsyncFinch) -> None:
3940
self._get_api_list = client.get_api_list
4041

4142
async def _sleep(self, seconds: float) -> None:
42-
await asyncio.sleep(seconds)
43+
await anyio.sleep(seconds)

0 commit comments

Comments
 (0)