File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 """
Original file line number Diff line number Diff line change 1717
1818from dataclasses import dataclass
1919
20- from restate .client import RestateClient
20+ from restate .client_types import RestateClient
2121
2222
2323@dataclass
You can’t perform that action at this time.
0 commit comments