|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import TYPE_CHECKING, Any, Union, Mapping |
| 6 | +from typing import TYPE_CHECKING, Any, Mapping |
7 | 7 | from typing_extensions import Self, override |
8 | 8 |
|
9 | 9 | import httpx |
10 | 10 |
|
11 | 11 | from . import _constants, _exceptions |
12 | 12 | from ._qs import Querystring |
13 | 13 | from ._types import ( |
14 | | - NOT_GIVEN, |
15 | 14 | Omit, |
16 | 15 | Headers, |
17 | 16 | Timeout, |
18 | 17 | NotGiven, |
19 | 18 | Transport, |
20 | 19 | ProxiesTypes, |
21 | 20 | RequestOptions, |
| 21 | + not_given, |
22 | 22 | ) |
23 | 23 | from ._utils import is_given, get_async_library |
24 | 24 | from ._compat import cached_property |
@@ -65,7 +65,7 @@ def __init__( |
65 | 65 | api_key: str | None = None, |
66 | 66 | auth_token: str | None = None, |
67 | 67 | base_url: str | httpx.URL | None = None, |
68 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 68 | + timeout: float | Timeout | None | NotGiven = not_given, |
69 | 69 | max_retries: int = DEFAULT_MAX_RETRIES, |
70 | 70 | default_headers: Mapping[str, str] | None = None, |
71 | 71 | default_query: Mapping[str, object] | None = None, |
@@ -203,9 +203,9 @@ def copy( |
203 | 203 | api_key: str | None = None, |
204 | 204 | auth_token: str | None = None, |
205 | 205 | base_url: str | httpx.URL | None = None, |
206 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 206 | + timeout: float | Timeout | None | NotGiven = not_given, |
207 | 207 | http_client: httpx.Client | None = None, |
208 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 208 | + max_retries: int | NotGiven = not_given, |
209 | 209 | default_headers: Mapping[str, str] | None = None, |
210 | 210 | set_default_headers: Mapping[str, str] | None = None, |
211 | 211 | default_query: Mapping[str, object] | None = None, |
@@ -305,7 +305,7 @@ def __init__( |
305 | 305 | api_key: str | None = None, |
306 | 306 | auth_token: str | None = None, |
307 | 307 | base_url: str | httpx.URL | None = None, |
308 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 308 | + timeout: float | Timeout | None | NotGiven = not_given, |
309 | 309 | max_retries: int = DEFAULT_MAX_RETRIES, |
310 | 310 | default_headers: Mapping[str, str] | None = None, |
311 | 311 | default_query: Mapping[str, object] | None = None, |
@@ -443,9 +443,9 @@ def copy( |
443 | 443 | api_key: str | None = None, |
444 | 444 | auth_token: str | None = None, |
445 | 445 | base_url: str | httpx.URL | None = None, |
446 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 446 | + timeout: float | Timeout | None | NotGiven = not_given, |
447 | 447 | http_client: httpx.AsyncClient | None = None, |
448 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 448 | + max_retries: int | NotGiven = not_given, |
449 | 449 | default_headers: Mapping[str, str] | None = None, |
450 | 450 | set_default_headers: Mapping[str, str] | None = None, |
451 | 451 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments