|
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__ |
@@ -56,7 +56,7 @@ def __init__( |
56 | 56 | *, |
57 | 57 | api_key: str | None = None, |
58 | 58 | base_url: str | httpx.URL | None = None, |
59 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 59 | + timeout: float | Timeout | None | NotGiven = not_given, |
60 | 60 | max_retries: int = DEFAULT_MAX_RETRIES, |
61 | 61 | default_headers: Mapping[str, str] | None = None, |
62 | 62 | default_query: Mapping[str, object] | None = None, |
@@ -132,9 +132,9 @@ def copy( |
132 | 132 | *, |
133 | 133 | api_key: str | None = None, |
134 | 134 | base_url: str | httpx.URL | None = None, |
135 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 135 | + timeout: float | Timeout | None | NotGiven = not_given, |
136 | 136 | http_client: httpx.Client | None = None, |
137 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 137 | + max_retries: int | NotGiven = not_given, |
138 | 138 | default_headers: Mapping[str, str] | None = None, |
139 | 139 | set_default_headers: Mapping[str, str] | None = None, |
140 | 140 | default_query: Mapping[str, object] | None = None, |
@@ -226,7 +226,7 @@ def __init__( |
226 | 226 | *, |
227 | 227 | api_key: str | None = None, |
228 | 228 | base_url: str | httpx.URL | None = None, |
229 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 229 | + timeout: float | Timeout | None | NotGiven = not_given, |
230 | 230 | max_retries: int = DEFAULT_MAX_RETRIES, |
231 | 231 | default_headers: Mapping[str, str] | None = None, |
232 | 232 | default_query: Mapping[str, object] | None = None, |
@@ -302,9 +302,9 @@ def copy( |
302 | 302 | *, |
303 | 303 | api_key: str | None = None, |
304 | 304 | base_url: str | httpx.URL | None = None, |
305 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 305 | + timeout: float | Timeout | None | NotGiven = not_given, |
306 | 306 | http_client: httpx.AsyncClient | None = None, |
307 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 307 | + max_retries: int | NotGiven = not_given, |
308 | 308 | default_headers: Mapping[str, str] | None = None, |
309 | 309 | set_default_headers: Mapping[str, str] | None = None, |
310 | 310 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments