|
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__ |
@@ -111,7 +111,7 @@ def __init__( |
111 | 111 | *, |
112 | 112 | api_key: str | None = None, |
113 | 113 | base_url: str | httpx.URL | None = None, |
114 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 114 | + timeout: float | Timeout | None | NotGiven = not_given, |
115 | 115 | max_retries: int = DEFAULT_MAX_RETRIES, |
116 | 116 | default_headers: Mapping[str, str] | None = None, |
117 | 117 | default_query: Mapping[str, object] | None = None, |
@@ -221,9 +221,9 @@ def copy( |
221 | 221 | *, |
222 | 222 | api_key: str | None = None, |
223 | 223 | base_url: str | httpx.URL | None = None, |
224 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 224 | + timeout: float | Timeout | None | NotGiven = not_given, |
225 | 225 | http_client: httpx.Client | None = None, |
226 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 226 | + max_retries: int | NotGiven = not_given, |
227 | 227 | default_headers: Mapping[str, str] | None = None, |
228 | 228 | set_default_headers: Mapping[str, str] | None = None, |
229 | 229 | default_query: Mapping[str, object] | None = None, |
@@ -344,7 +344,7 @@ def __init__( |
344 | 344 | *, |
345 | 345 | api_key: str | None = None, |
346 | 346 | base_url: str | httpx.URL | None = None, |
347 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 347 | + timeout: float | Timeout | None | NotGiven = not_given, |
348 | 348 | max_retries: int = DEFAULT_MAX_RETRIES, |
349 | 349 | default_headers: Mapping[str, str] | None = None, |
350 | 350 | default_query: Mapping[str, object] | None = None, |
@@ -454,9 +454,9 @@ def copy( |
454 | 454 | *, |
455 | 455 | api_key: str | None = None, |
456 | 456 | base_url: str | httpx.URL | None = None, |
457 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 457 | + timeout: float | Timeout | None | NotGiven = not_given, |
458 | 458 | http_client: httpx.AsyncClient | None = None, |
459 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 459 | + max_retries: int | NotGiven = not_given, |
460 | 460 | default_headers: Mapping[str, str] | None = None, |
461 | 461 | set_default_headers: Mapping[str, str] | None = None, |
462 | 462 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments