|
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__ |
@@ -54,7 +54,7 @@ def __init__( |
54 | 54 | *, |
55 | 55 | api_key: str | None = None, |
56 | 56 | base_url: str | httpx.URL | None = None, |
57 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 57 | + timeout: float | Timeout | None | NotGiven = not_given, |
58 | 58 | max_retries: int = DEFAULT_MAX_RETRIES, |
59 | 59 | default_headers: Mapping[str, str] | None = None, |
60 | 60 | default_query: Mapping[str, object] | None = None, |
@@ -134,9 +134,9 @@ def copy( |
134 | 134 | *, |
135 | 135 | api_key: str | None = None, |
136 | 136 | base_url: str | httpx.URL | None = None, |
137 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 137 | + timeout: float | Timeout | None | NotGiven = not_given, |
138 | 138 | http_client: httpx.Client | None = None, |
139 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 139 | + max_retries: int | NotGiven = not_given, |
140 | 140 | default_headers: Mapping[str, str] | None = None, |
141 | 141 | set_default_headers: Mapping[str, str] | None = None, |
142 | 142 | default_query: Mapping[str, object] | None = None, |
@@ -232,7 +232,7 @@ def __init__( |
232 | 232 | *, |
233 | 233 | api_key: str | None = None, |
234 | 234 | base_url: str | httpx.URL | None = None, |
235 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 235 | + timeout: float | Timeout | None | NotGiven = not_given, |
236 | 236 | max_retries: int = DEFAULT_MAX_RETRIES, |
237 | 237 | default_headers: Mapping[str, str] | None = None, |
238 | 238 | default_query: Mapping[str, object] | None = None, |
@@ -312,9 +312,9 @@ def copy( |
312 | 312 | *, |
313 | 313 | api_key: str | None = None, |
314 | 314 | base_url: str | httpx.URL | None = None, |
315 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 315 | + timeout: float | Timeout | None | NotGiven = not_given, |
316 | 316 | http_client: httpx.AsyncClient | None = None, |
317 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 317 | + max_retries: int | NotGiven = not_given, |
318 | 318 | default_headers: Mapping[str, str] | None = None, |
319 | 319 | set_default_headers: Mapping[str, str] | None = None, |
320 | 320 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments