Skip to content

Commit 2778a22

Browse files
chore(client): use anyio.sleep instead of asyncio.sleep (anthropics#351)
1 parent ee0161c commit 2778a22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/anthropic/_resource.py

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

55
import time
6-
import asyncio
6+
7+
import anyio
78

89
from ._base_client import SyncAPIClient, AsyncAPIClient
910

@@ -37,4 +38,4 @@ def __init__(self, client: AsyncAPIClient) -> None:
3738
self._get_api_list = client.get_api_list
3839

3940
async def _sleep(self, seconds: float) -> None:
40-
await asyncio.sleep(seconds)
41+
await anyio.sleep(seconds)

0 commit comments

Comments
 (0)