Skip to content

Commit

Permalink
chore(streaming): update constructor to use direct client names (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Dec 19, 2023
1 parent b9e38b2 commit 0c55c84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/anthropic/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0c55c84

Please sign in to comment.