|
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__ |
@@ -55,7 +55,7 @@ def __init__( |
55 | 55 | *, |
56 | 56 | api_key: str | None = None, |
57 | 57 | base_url: str | httpx.URL | None = None, |
58 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 58 | + timeout: float | Timeout | None | NotGiven = not_given, |
59 | 59 | max_retries: int = DEFAULT_MAX_RETRIES, |
60 | 60 | default_headers: Mapping[str, str] | None = None, |
61 | 61 | default_query: Mapping[str, object] | None = None, |
@@ -130,9 +130,9 @@ def copy( |
130 | 130 | *, |
131 | 131 | api_key: str | None = None, |
132 | 132 | base_url: str | httpx.URL | None = None, |
133 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 133 | + timeout: float | Timeout | None | NotGiven = not_given, |
134 | 134 | http_client: httpx.Client | None = None, |
135 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 135 | + max_retries: int | NotGiven = not_given, |
136 | 136 | default_headers: Mapping[str, str] | None = None, |
137 | 137 | set_default_headers: Mapping[str, str] | None = None, |
138 | 138 | default_query: Mapping[str, object] | None = None, |
@@ -223,7 +223,7 @@ def __init__( |
223 | 223 | *, |
224 | 224 | api_key: str | None = None, |
225 | 225 | base_url: str | httpx.URL | None = None, |
226 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 226 | + timeout: float | Timeout | None | NotGiven = not_given, |
227 | 227 | max_retries: int = DEFAULT_MAX_RETRIES, |
228 | 228 | default_headers: Mapping[str, str] | None = None, |
229 | 229 | default_query: Mapping[str, object] | None = None, |
@@ -298,9 +298,9 @@ def copy( |
298 | 298 | *, |
299 | 299 | api_key: str | None = None, |
300 | 300 | base_url: str | httpx.URL | None = None, |
301 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 301 | + timeout: float | Timeout | None | NotGiven = not_given, |
302 | 302 | http_client: httpx.AsyncClient | None = None, |
303 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 303 | + max_retries: int | NotGiven = not_given, |
304 | 304 | default_headers: Mapping[str, str] | None = None, |
305 | 305 | set_default_headers: Mapping[str, str] | None = None, |
306 | 306 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments