Skip to content

Commit bd84369

Browse files
stainless-botRobertCraigie
authored andcommitted
chore(streaming): update constructor to use direct client names (anthropics#285)
1 parent a523b7c commit bd84369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/anthropic/_streaming.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ._types import ResponseT
1111

1212
if TYPE_CHECKING:
13-
from ._base_client import SyncAPIClient, AsyncAPIClient
13+
from ._client import Anthropic, AsyncAnthropic
1414

1515

1616
class Stream(Generic[ResponseT]):
@@ -23,7 +23,7 @@ def __init__(
2323
*,
2424
cast_to: type[ResponseT],
2525
response: httpx.Response,
26-
client: SyncAPIClient,
26+
client: Anthropic,
2727
) -> None:
2828
self.response = response
2929
self._cast_to = cast_to
@@ -84,7 +84,7 @@ def __init__(
8484
*,
8585
cast_to: type[ResponseT],
8686
response: httpx.Response,
87-
client: AsyncAPIClient,
87+
client: AsyncAnthropic,
8888
) -> None:
8989
self.response = response
9090
self._cast_to = cast_to

0 commit comments

Comments
 (0)