|
4 | 4 |
|
5 | 5 | import os |
6 | 6 | import base64 |
7 | | -from typing import Any, Union, Mapping |
| 7 | +from typing import Any, Mapping |
8 | 8 | from typing_extensions import Self, override |
9 | 9 |
|
10 | 10 | import httpx |
11 | 11 |
|
12 | 12 | from . import _exceptions |
13 | 13 | from ._qs import Querystring |
14 | 14 | from ._types import ( |
15 | | - NOT_GIVEN, |
16 | 15 | Omit, |
17 | 16 | Headers, |
18 | 17 | Timeout, |
19 | 18 | NotGiven, |
20 | 19 | Transport, |
21 | 20 | ProxiesTypes, |
22 | 21 | RequestOptions, |
| 22 | + not_given, |
23 | 23 | ) |
24 | 24 | from ._utils import is_given, get_async_library |
25 | 25 | from ._version import __version__ |
@@ -73,7 +73,7 @@ def __init__( |
73 | 73 | password: str | None = None, |
74 | 74 | webhook_secret: str | None = None, |
75 | 75 | base_url: str | httpx.URL | None = None, |
76 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 76 | + timeout: float | Timeout | None | NotGiven = not_given, |
77 | 77 | max_retries: int = DEFAULT_MAX_RETRIES, |
78 | 78 | default_headers: Mapping[str, str] | None = None, |
79 | 79 | default_query: Mapping[str, object] | None = None, |
@@ -183,9 +183,9 @@ def copy( |
183 | 183 | password: str | None = None, |
184 | 184 | webhook_secret: str | None = None, |
185 | 185 | base_url: str | httpx.URL | None = None, |
186 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 186 | + timeout: float | Timeout | None | NotGiven = not_given, |
187 | 187 | http_client: httpx.Client | None = None, |
188 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 188 | + max_retries: int | NotGiven = not_given, |
189 | 189 | default_headers: Mapping[str, str] | None = None, |
190 | 190 | set_default_headers: Mapping[str, str] | None = None, |
191 | 191 | default_query: Mapping[str, object] | None = None, |
@@ -291,7 +291,7 @@ def __init__( |
291 | 291 | password: str | None = None, |
292 | 292 | webhook_secret: str | None = None, |
293 | 293 | base_url: str | httpx.URL | None = None, |
294 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 294 | + timeout: float | Timeout | None | NotGiven = not_given, |
295 | 295 | max_retries: int = DEFAULT_MAX_RETRIES, |
296 | 296 | default_headers: Mapping[str, str] | None = None, |
297 | 297 | default_query: Mapping[str, object] | None = None, |
@@ -401,9 +401,9 @@ def copy( |
401 | 401 | password: str | None = None, |
402 | 402 | webhook_secret: str | None = None, |
403 | 403 | base_url: str | httpx.URL | None = None, |
404 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 404 | + timeout: float | Timeout | None | NotGiven = not_given, |
405 | 405 | http_client: httpx.AsyncClient | None = None, |
406 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 406 | + max_retries: int | NotGiven = not_given, |
407 | 407 | default_headers: Mapping[str, str] | None = None, |
408 | 408 | set_default_headers: Mapping[str, str] | None = None, |
409 | 409 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments