|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import TYPE_CHECKING, Any, Union, Mapping |
| 6 | +from typing import TYPE_CHECKING, 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 ._compat import cached_property |
@@ -51,7 +51,7 @@ def __init__( |
51 | 51 | *, |
52 | 52 | api_key: str | None = None, |
53 | 53 | base_url: str | httpx.URL | None = None, |
54 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 54 | + timeout: float | Timeout | None | NotGiven = not_given, |
55 | 55 | max_retries: int = DEFAULT_MAX_RETRIES, |
56 | 56 | default_headers: Mapping[str, str] | None = None, |
57 | 57 | default_query: Mapping[str, object] | None = None, |
@@ -166,9 +166,9 @@ def copy( |
166 | 166 | *, |
167 | 167 | api_key: str | None = None, |
168 | 168 | base_url: str | httpx.URL | None = None, |
169 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 169 | + timeout: float | Timeout | None | NotGiven = not_given, |
170 | 170 | http_client: httpx.Client | None = None, |
171 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 171 | + max_retries: int | NotGiven = not_given, |
172 | 172 | default_headers: Mapping[str, str] | None = None, |
173 | 173 | set_default_headers: Mapping[str, str] | None = None, |
174 | 174 | default_query: Mapping[str, object] | None = None, |
@@ -255,7 +255,7 @@ def __init__( |
255 | 255 | *, |
256 | 256 | api_key: str | None = None, |
257 | 257 | base_url: str | httpx.URL | None = None, |
258 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 258 | + timeout: float | Timeout | None | NotGiven = not_given, |
259 | 259 | max_retries: int = DEFAULT_MAX_RETRIES, |
260 | 260 | default_headers: Mapping[str, str] | None = None, |
261 | 261 | default_query: Mapping[str, object] | None = None, |
@@ -370,9 +370,9 @@ def copy( |
370 | 370 | *, |
371 | 371 | api_key: str | None = None, |
372 | 372 | base_url: str | httpx.URL | None = None, |
373 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 373 | + timeout: float | Timeout | None | NotGiven = not_given, |
374 | 374 | http_client: httpx.AsyncClient | None = None, |
375 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 375 | + max_retries: int | NotGiven = not_given, |
376 | 376 | default_headers: Mapping[str, str] | None = None, |
377 | 377 | set_default_headers: Mapping[str, str] | None = None, |
378 | 378 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments