|
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__ |
@@ -58,7 +58,7 @@ def __init__( |
58 | 58 | *, |
59 | 59 | api_key: str | None = None, |
60 | 60 | base_url: str | httpx.URL | None = None, |
61 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 61 | + timeout: float | Timeout | None | NotGiven = not_given, |
62 | 62 | max_retries: int = DEFAULT_MAX_RETRIES, |
63 | 63 | default_headers: Mapping[str, str] | None = None, |
64 | 64 | default_query: Mapping[str, object] | None = None, |
@@ -135,9 +135,9 @@ def copy( |
135 | 135 | *, |
136 | 136 | api_key: str | None = None, |
137 | 137 | base_url: str | httpx.URL | None = None, |
138 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 138 | + timeout: float | Timeout | None | NotGiven = not_given, |
139 | 139 | http_client: httpx.Client | None = None, |
140 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 140 | + max_retries: int | NotGiven = not_given, |
141 | 141 | default_headers: Mapping[str, str] | None = None, |
142 | 142 | set_default_headers: Mapping[str, str] | None = None, |
143 | 143 | default_query: Mapping[str, object] | None = None, |
@@ -230,7 +230,7 @@ def __init__( |
230 | 230 | *, |
231 | 231 | api_key: str | None = None, |
232 | 232 | base_url: str | httpx.URL | None = None, |
233 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 233 | + timeout: float | Timeout | None | NotGiven = not_given, |
234 | 234 | max_retries: int = DEFAULT_MAX_RETRIES, |
235 | 235 | default_headers: Mapping[str, str] | None = None, |
236 | 236 | default_query: Mapping[str, object] | None = None, |
@@ -307,9 +307,9 @@ def copy( |
307 | 307 | *, |
308 | 308 | api_key: str | None = None, |
309 | 309 | base_url: str | httpx.URL | None = None, |
310 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 310 | + timeout: float | Timeout | None | NotGiven = not_given, |
311 | 311 | http_client: httpx.AsyncClient | None = None, |
312 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 312 | + max_retries: int | NotGiven = not_given, |
313 | 313 | default_headers: Mapping[str, str] | None = None, |
314 | 314 | set_default_headers: Mapping[str, str] | None = None, |
315 | 315 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments