diff --git a/src/cloudflare/_resource.py b/src/cloudflare/_resource.py index 748023621f4..7623c28c35d 100644 --- a/src/cloudflare/_resource.py +++ b/src/cloudflare/_resource.py @@ -3,9 +3,10 @@ from __future__ import annotations import time -import asyncio from typing import TYPE_CHECKING +import anyio + if TYPE_CHECKING: from ._client import Cloudflare, AsyncCloudflare @@ -39,4 +40,4 @@ def __init__(self, client: AsyncCloudflare) -> None: self._get_api_list = client.get_api_list async def _sleep(self, seconds: float) -> None: - await asyncio.sleep(seconds) + await anyio.sleep(seconds)