diff --git a/src/anthropic/_resource.py b/src/anthropic/_resource.py index ca179670..3d719ab1 100644 --- a/src/anthropic/_resource.py +++ b/src/anthropic/_resource.py @@ -4,16 +4,14 @@ import time import asyncio -from typing import TYPE_CHECKING -if TYPE_CHECKING: - from ._client import Anthropic, AsyncAnthropic +from ._base_client import SyncAPIClient, AsyncAPIClient class SyncAPIResource: - _client: Anthropic + _client: SyncAPIClient - def __init__(self, client: Anthropic) -> None: + def __init__(self, client: SyncAPIClient) -> None: self._client = client self._get = client.get self._post = client.post @@ -27,9 +25,9 @@ def _sleep(self, seconds: float) -> None: class AsyncAPIResource: - _client: AsyncAnthropic + _client: AsyncAPIClient - def __init__(self, client: AsyncAnthropic) -> None: + def __init__(self, client: AsyncAPIClient) -> None: self._client = client self._get = client.get self._post = client.post