Skip to content

Commit db5265c

Browse files
committed
Use the correct import
1 parent aae289f commit db5265c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

python/restate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_harness(
8181
@asynccontextmanager
8282
async def create_client(
8383
ingress: str, headers: typing.Optional[dict] = None
84-
) -> typing.AsyncGenerator[RestateClient]:
84+
) -> typing.AsyncGenerator[RestateClient, None]:
8585
"""a dummy client constructor to raise ImportError. Install restate-sdk[client] to use this feature"""
8686
raise ImportError("Install restate-sdk[client] to use this feature")
8787
yield # type: ignore

python/restate/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ async def generic_send(
308308

309309

310310
@asynccontextmanager
311-
async def create_client(ingress: str, headers: typing.Optional[dict] = None) -> typing.AsyncGenerator[RestateClient]:
311+
async def create_client(
312+
ingress: str, headers: typing.Optional[dict] = None
313+
) -> typing.AsyncGenerator[RestateClient, None]:
312314
"""
313315
Create a new Restate client.
314316
"""

python/restate/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from dataclasses import dataclass
1919

20-
from restate.client import RestateClient
20+
from restate.client_types import RestateClient
2121

2222

2323
@dataclass

0 commit comments

Comments
 (0)