|
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 | Headers, |
17 | 16 | Timeout, |
18 | 17 | NotGiven, |
19 | 18 | Transport, |
20 | 19 | ProxiesTypes, |
21 | 20 | RequestOptions, |
| 21 | + not_given, |
22 | 22 | ) |
23 | 23 | from ._utils import is_given, get_async_library |
24 | 24 | from ._version import __version__ |
@@ -82,7 +82,7 @@ def __init__( |
82 | 82 | *, |
83 | 83 | apikey: str | None = None, |
84 | 84 | base_url: str | httpx.URL | None = None, |
85 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 85 | + timeout: float | Timeout | None | NotGiven = not_given, |
86 | 86 | max_retries: int = DEFAULT_MAX_RETRIES, |
87 | 87 | default_headers: Mapping[str, str] | None = None, |
88 | 88 | default_query: Mapping[str, object] | None = None, |
@@ -178,9 +178,9 @@ def copy( |
178 | 178 | *, |
179 | 179 | apikey: str | None = None, |
180 | 180 | base_url: str | httpx.URL | None = None, |
181 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 181 | + timeout: float | Timeout | None | NotGiven = not_given, |
182 | 182 | http_client: httpx.Client | None = None, |
183 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 183 | + max_retries: int | NotGiven = not_given, |
184 | 184 | default_headers: Mapping[str, str] | None = None, |
185 | 185 | set_default_headers: Mapping[str, str] | None = None, |
186 | 186 | default_query: Mapping[str, object] | None = None, |
@@ -283,7 +283,7 @@ def __init__( |
283 | 283 | *, |
284 | 284 | apikey: str | None = None, |
285 | 285 | base_url: str | httpx.URL | None = None, |
286 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 286 | + timeout: float | Timeout | None | NotGiven = not_given, |
287 | 287 | max_retries: int = DEFAULT_MAX_RETRIES, |
288 | 288 | default_headers: Mapping[str, str] | None = None, |
289 | 289 | default_query: Mapping[str, object] | None = None, |
@@ -379,9 +379,9 @@ def copy( |
379 | 379 | *, |
380 | 380 | apikey: str | None = None, |
381 | 381 | base_url: str | httpx.URL | None = None, |
382 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 382 | + timeout: float | Timeout | None | NotGiven = not_given, |
383 | 383 | http_client: httpx.AsyncClient | None = None, |
384 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 384 | + max_retries: int | NotGiven = not_given, |
385 | 385 | default_headers: Mapping[str, str] | None = None, |
386 | 386 | set_default_headers: Mapping[str, str] | None = None, |
387 | 387 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments