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