|
10 | 10 |
|
11 | 11 | @overload
|
12 | 12 | def create_client(
|
13 |
| - url: str, headers: dict[str, str], *, is_async: Literal[True] |
| 13 | + url: str, headers: dict[str, str], *, is_async: Literal[True], verify: bool |
14 | 14 | ) -> AsyncFunctionsClient: ...
|
15 | 15 |
|
16 | 16 |
|
17 | 17 | @overload
|
18 | 18 | def create_client(
|
19 |
| - url: str, headers: dict[str, str], *, is_async: Literal[False] |
| 19 | + url: str, headers: dict[str, str], *, is_async: Literal[False], verify: bool |
20 | 20 | ) -> SyncFunctionsClient: ...
|
21 | 21 |
|
22 | 22 |
|
23 | 23 | def create_client(
|
24 |
| - url: str, headers: dict[str, str], *, is_async: bool |
| 24 | + url: str, headers: dict[str, str], *, is_async: bool, verify: bool = True, |
25 | 25 | ) -> Union[AsyncFunctionsClient, SyncFunctionsClient]:
|
26 | 26 | if is_async:
|
27 |
| - return AsyncFunctionsClient(url, headers) |
| 27 | + return AsyncFunctionsClient(url, headers, verify) |
28 | 28 | else:
|
29 |
| - return SyncFunctionsClient(url, headers) |
| 29 | + return SyncFunctionsClient(url, headers, verify) |
0 commit comments