|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import Any, Dict, Union, Mapping, cast |
| 6 | +from typing import Any, Dict, Mapping, cast |
7 | 7 | from typing_extensions import Self, Literal, 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__ |
@@ -74,9 +74,9 @@ def __init__( |
74 | 74 | auth_token: str | None = None, |
75 | 75 | api_key: str | None = None, |
76 | 76 | access_key: str | None = None, |
77 | | - environment: Literal["production", "staging", "local"] | NotGiven = NOT_GIVEN, |
78 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
79 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 77 | + environment: Literal["production", "staging", "local"] | NotGiven = not_given, |
| 78 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 79 | + timeout: float | Timeout | None | NotGiven = not_given, |
80 | 80 | max_retries: int = DEFAULT_MAX_RETRIES, |
81 | 81 | default_headers: Mapping[str, str] | None = None, |
82 | 82 | default_query: Mapping[str, object] | None = None, |
@@ -214,9 +214,9 @@ def copy( |
214 | 214 | access_key: str | None = None, |
215 | 215 | environment: Literal["production", "staging", "local"] | None = None, |
216 | 216 | base_url: str | httpx.URL | None = None, |
217 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 217 | + timeout: float | Timeout | None | NotGiven = not_given, |
218 | 218 | http_client: httpx.Client | None = None, |
219 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 219 | + max_retries: int | NotGiven = not_given, |
220 | 220 | default_headers: Mapping[str, str] | None = None, |
221 | 221 | set_default_headers: Mapping[str, str] | None = None, |
222 | 222 | default_query: Mapping[str, object] | None = None, |
@@ -318,9 +318,9 @@ def __init__( |
318 | 318 | auth_token: str | None = None, |
319 | 319 | api_key: str | None = None, |
320 | 320 | access_key: str | None = None, |
321 | | - environment: Literal["production", "staging", "local"] | NotGiven = NOT_GIVEN, |
322 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
323 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 321 | + environment: Literal["production", "staging", "local"] | NotGiven = not_given, |
| 322 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 323 | + timeout: float | Timeout | None | NotGiven = not_given, |
324 | 324 | max_retries: int = DEFAULT_MAX_RETRIES, |
325 | 325 | default_headers: Mapping[str, str] | None = None, |
326 | 326 | default_query: Mapping[str, object] | None = None, |
@@ -458,9 +458,9 @@ def copy( |
458 | 458 | access_key: str | None = None, |
459 | 459 | environment: Literal["production", "staging", "local"] | None = None, |
460 | 460 | base_url: str | httpx.URL | None = None, |
461 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 461 | + timeout: float | Timeout | None | NotGiven = not_given, |
462 | 462 | http_client: httpx.AsyncClient | None = None, |
463 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 463 | + max_retries: int | NotGiven = not_given, |
464 | 464 | default_headers: Mapping[str, str] | None = None, |
465 | 465 | set_default_headers: Mapping[str, str] | None = None, |
466 | 466 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments