|
4 | 4 |
|
5 | 5 | import os
|
6 | 6 | import asyncio
|
7 |
| -from typing import Union, Mapping, Optional |
| 7 | +from typing import Union, Mapping |
8 | 8 |
|
9 | 9 | import httpx
|
10 | 10 |
|
@@ -66,7 +66,7 @@ def __init__(
|
66 | 66 | client_id: str | None = None,
|
67 | 67 | client_secret: str | None = None,
|
68 | 68 | webhook_secret: str | None = None,
|
69 |
| - base_url: Optional[str] = None, |
| 69 | + base_url: str | httpx.URL | None = None, |
70 | 70 | timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
71 | 71 | max_retries: int = DEFAULT_MAX_RETRIES,
|
72 | 72 | default_headers: Mapping[str, str] | None = None,
|
@@ -169,7 +169,7 @@ def copy(
|
169 | 169 | client_id: str | None = None,
|
170 | 170 | client_secret: str | None = None,
|
171 | 171 | webhook_secret: str | None = None,
|
172 |
| - base_url: str | None = None, |
| 172 | + base_url: str | httpx.URL | None = None, |
173 | 173 | timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
174 | 174 | http_client: httpx.Client | None = None,
|
175 | 175 | connection_pool_limits: httpx.Limits | None = None,
|
@@ -361,7 +361,7 @@ def __init__(
|
361 | 361 | client_id: str | None = None,
|
362 | 362 | client_secret: str | None = None,
|
363 | 363 | webhook_secret: str | None = None,
|
364 |
| - base_url: Optional[str] = None, |
| 364 | + base_url: str | httpx.URL | None = None, |
365 | 365 | timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
366 | 366 | max_retries: int = DEFAULT_MAX_RETRIES,
|
367 | 367 | default_headers: Mapping[str, str] | None = None,
|
@@ -464,7 +464,7 @@ def copy(
|
464 | 464 | client_id: str | None = None,
|
465 | 465 | client_secret: str | None = None,
|
466 | 466 | webhook_secret: str | None = None,
|
467 |
| - base_url: str | None = None, |
| 467 | + base_url: str | httpx.URL | None = None, |
468 | 468 | timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
469 | 469 | http_client: httpx.AsyncClient | None = None,
|
470 | 470 | connection_pool_limits: httpx.Limits | None = None,
|
|
0 commit comments