From 0c55c84ab3527199401f387fbc3338572b264fef Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 19 Dec 2023 07:31:28 -0500 Subject: [PATCH] chore(streaming): update constructor to use direct client names (#285) --- src/anthropic/_streaming.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/anthropic/_streaming.py b/src/anthropic/_streaming.py index 5be75e9a..bf7ad61d 100644 --- a/src/anthropic/_streaming.py +++ b/src/anthropic/_streaming.py @@ -10,7 +10,7 @@ from ._types import ResponseT if TYPE_CHECKING: - from ._base_client import SyncAPIClient, AsyncAPIClient + from ._client import Anthropic, AsyncAnthropic class Stream(Generic[ResponseT]): @@ -23,7 +23,7 @@ def __init__( *, cast_to: type[ResponseT], response: httpx.Response, - client: SyncAPIClient, + client: Anthropic, ) -> None: self.response = response self._cast_to = cast_to @@ -84,7 +84,7 @@ def __init__( *, cast_to: type[ResponseT], response: httpx.Response, - client: AsyncAPIClient, + client: AsyncAnthropic, ) -> None: self.response = response self._cast_to = cast_to