|
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__ |
@@ -99,7 +99,7 @@ def __init__( |
99 | 99 | *, |
100 | 100 | api_key: str | None = None, |
101 | 101 | base_url: str | httpx.URL | None = None, |
102 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 102 | + timeout: float | Timeout | None | NotGiven = not_given, |
103 | 103 | max_retries: int = DEFAULT_MAX_RETRIES, |
104 | 104 | default_headers: Mapping[str, str] | None = None, |
105 | 105 | default_query: Mapping[str, object] | None = None, |
@@ -195,9 +195,9 @@ def copy( |
195 | 195 | *, |
196 | 196 | api_key: str | None = None, |
197 | 197 | base_url: str | httpx.URL | None = None, |
198 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 198 | + timeout: float | Timeout | None | NotGiven = not_given, |
199 | 199 | http_client: httpx.Client | None = None, |
200 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 200 | + max_retries: int | NotGiven = not_given, |
201 | 201 | default_headers: Mapping[str, str] | None = None, |
202 | 202 | set_default_headers: Mapping[str, str] | None = None, |
203 | 203 | default_query: Mapping[str, object] | None = None, |
@@ -309,7 +309,7 @@ def __init__( |
309 | 309 | *, |
310 | 310 | api_key: str | None = None, |
311 | 311 | base_url: str | httpx.URL | None = None, |
312 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 312 | + timeout: float | Timeout | None | NotGiven = not_given, |
313 | 313 | max_retries: int = DEFAULT_MAX_RETRIES, |
314 | 314 | default_headers: Mapping[str, str] | None = None, |
315 | 315 | default_query: Mapping[str, object] | None = None, |
@@ -405,9 +405,9 @@ def copy( |
405 | 405 | *, |
406 | 406 | api_key: str | None = None, |
407 | 407 | base_url: str | httpx.URL | None = None, |
408 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 408 | + timeout: float | Timeout | None | NotGiven = not_given, |
409 | 409 | http_client: httpx.AsyncClient | None = None, |
410 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 410 | + max_retries: int | NotGiven = not_given, |
411 | 411 | default_headers: Mapping[str, str] | None = None, |
412 | 412 | set_default_headers: Mapping[str, str] | None = None, |
413 | 413 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments