|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import Any, Union, Mapping |
| 6 | +from typing import Any, Mapping |
7 | 7 | from typing_extensions import Self, override |
8 | 8 |
|
9 | 9 | import httpx |
10 | 10 |
|
11 | 11 | from . import _exceptions |
12 | 12 | from ._qs import Querystring |
13 | 13 | from ._types import ( |
14 | | - NOT_GIVEN, |
15 | 14 | Omit, |
16 | 15 | Timeout, |
17 | 16 | NotGiven, |
18 | 17 | Transport, |
19 | 18 | ProxiesTypes, |
20 | 19 | RequestOptions, |
| 20 | + not_given, |
21 | 21 | ) |
22 | 22 | from ._utils import is_given, get_async_library |
23 | 23 | from ._version import __version__ |
@@ -59,7 +59,7 @@ def __init__( |
59 | 59 | *, |
60 | 60 | api_key: str | None = None, |
61 | 61 | base_url: str | httpx.URL | None = None, |
62 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 62 | + timeout: float | Timeout | None | NotGiven = not_given, |
63 | 63 | max_retries: int = DEFAULT_MAX_RETRIES, |
64 | 64 | default_headers: Mapping[str, str] | None = None, |
65 | 65 | default_query: Mapping[str, object] | None = None, |
@@ -136,9 +136,9 @@ def copy( |
136 | 136 | *, |
137 | 137 | api_key: str | None = None, |
138 | 138 | base_url: str | httpx.URL | None = None, |
139 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 139 | + timeout: float | Timeout | None | NotGiven = not_given, |
140 | 140 | http_client: httpx.Client | None = None, |
141 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 141 | + max_retries: int | NotGiven = not_given, |
142 | 142 | default_headers: Mapping[str, str] | None = None, |
143 | 143 | set_default_headers: Mapping[str, str] | None = None, |
144 | 144 | default_query: Mapping[str, object] | None = None, |
@@ -231,7 +231,7 @@ def __init__( |
231 | 231 | *, |
232 | 232 | api_key: str | None = None, |
233 | 233 | base_url: str | httpx.URL | None = None, |
234 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 234 | + timeout: float | Timeout | None | NotGiven = not_given, |
235 | 235 | max_retries: int = DEFAULT_MAX_RETRIES, |
236 | 236 | default_headers: Mapping[str, str] | None = None, |
237 | 237 | default_query: Mapping[str, object] | None = None, |
@@ -308,9 +308,9 @@ def copy( |
308 | 308 | *, |
309 | 309 | api_key: str | None = None, |
310 | 310 | base_url: str | httpx.URL | None = None, |
311 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 311 | + timeout: float | Timeout | None | NotGiven = not_given, |
312 | 312 | http_client: httpx.AsyncClient | None = None, |
313 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 313 | + max_retries: int | NotGiven = not_given, |
314 | 314 | default_headers: Mapping[str, str] | None = None, |
315 | 315 | set_default_headers: Mapping[str, str] | None = None, |
316 | 316 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments