|
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, |
@@ -137,9 +137,9 @@ def copy( |
137 | 137 | *, |
138 | 138 | api_key: str | None = None, |
139 | 139 | base_url: str | httpx.URL | None = None, |
140 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 140 | + timeout: float | Timeout | None | NotGiven = not_given, |
141 | 141 | http_client: httpx.Client | None = None, |
142 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 142 | + max_retries: int | NotGiven = not_given, |
143 | 143 | default_headers: Mapping[str, str] | None = None, |
144 | 144 | set_default_headers: Mapping[str, str] | None = None, |
145 | 145 | default_query: Mapping[str, object] | None = None, |
@@ -233,7 +233,7 @@ def __init__( |
233 | 233 | *, |
234 | 234 | api_key: str | None = None, |
235 | 235 | base_url: str | httpx.URL | None = None, |
236 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 236 | + timeout: float | Timeout | None | NotGiven = not_given, |
237 | 237 | max_retries: int = DEFAULT_MAX_RETRIES, |
238 | 238 | default_headers: Mapping[str, str] | None = None, |
239 | 239 | default_query: Mapping[str, object] | None = None, |
@@ -311,9 +311,9 @@ def copy( |
311 | 311 | *, |
312 | 312 | api_key: str | None = None, |
313 | 313 | base_url: str | httpx.URL | None = None, |
314 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 314 | + timeout: float | Timeout | None | NotGiven = not_given, |
315 | 315 | http_client: httpx.AsyncClient | None = None, |
316 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 316 | + max_retries: int | NotGiven = not_given, |
317 | 317 | default_headers: Mapping[str, str] | None = None, |
318 | 318 | set_default_headers: Mapping[str, str] | None = None, |
319 | 319 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments