|
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__ |
@@ -50,7 +50,7 @@ def __init__( |
50 | 50 | *, |
51 | 51 | api_key: str | None = None, |
52 | 52 | base_url: str | httpx.URL | None = None, |
53 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 53 | + timeout: float | Timeout | None | NotGiven = not_given, |
54 | 54 | max_retries: int = DEFAULT_MAX_RETRIES, |
55 | 55 | default_headers: Mapping[str, str] | None = None, |
56 | 56 | default_query: Mapping[str, object] | None = None, |
@@ -127,9 +127,9 @@ def copy( |
127 | 127 | *, |
128 | 128 | api_key: str | None = None, |
129 | 129 | base_url: str | httpx.URL | None = None, |
130 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 130 | + timeout: float | Timeout | None | NotGiven = not_given, |
131 | 131 | http_client: httpx.Client | None = None, |
132 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 132 | + max_retries: int | NotGiven = not_given, |
133 | 133 | default_headers: Mapping[str, str] | None = None, |
134 | 134 | set_default_headers: Mapping[str, str] | None = None, |
135 | 135 | default_query: Mapping[str, object] | None = None, |
@@ -222,7 +222,7 @@ def __init__( |
222 | 222 | *, |
223 | 223 | api_key: str | None = None, |
224 | 224 | base_url: str | httpx.URL | None = None, |
225 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 225 | + timeout: float | Timeout | None | NotGiven = not_given, |
226 | 226 | max_retries: int = DEFAULT_MAX_RETRIES, |
227 | 227 | default_headers: Mapping[str, str] | None = None, |
228 | 228 | default_query: Mapping[str, object] | None = None, |
@@ -299,9 +299,9 @@ def copy( |
299 | 299 | *, |
300 | 300 | api_key: str | None = None, |
301 | 301 | base_url: str | httpx.URL | None = None, |
302 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 302 | + timeout: float | Timeout | None | NotGiven = not_given, |
303 | 303 | http_client: httpx.AsyncClient | None = None, |
304 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 304 | + max_retries: int | NotGiven = not_given, |
305 | 305 | default_headers: Mapping[str, str] | None = None, |
306 | 306 | set_default_headers: Mapping[str, str] | None = None, |
307 | 307 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments