|
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 | 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__ |
@@ -69,9 +69,9 @@ def __init__( |
69 | 69 | self, |
70 | 70 | *, |
71 | 71 | api_key: str | None = None, |
72 | | - environment: Literal["production", "development"] | NotGiven = NOT_GIVEN, |
73 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
74 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 72 | + environment: Literal["production", "development"] | NotGiven = not_given, |
| 73 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 74 | + timeout: float | Timeout | None | NotGiven = not_given, |
75 | 75 | max_retries: int = DEFAULT_MAX_RETRIES, |
76 | 76 | default_headers: Mapping[str, str] | None = None, |
77 | 77 | default_query: Mapping[str, object] | None = None, |
@@ -172,9 +172,9 @@ def copy( |
172 | 172 | api_key: str | None = None, |
173 | 173 | environment: Literal["production", "development"] | None = None, |
174 | 174 | base_url: str | httpx.URL | None = None, |
175 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 175 | + timeout: float | Timeout | None | NotGiven = not_given, |
176 | 176 | http_client: httpx.Client | None = None, |
177 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 177 | + max_retries: int | NotGiven = not_given, |
178 | 178 | default_headers: Mapping[str, str] | None = None, |
179 | 179 | set_default_headers: Mapping[str, str] | None = None, |
180 | 180 | default_query: Mapping[str, object] | None = None, |
@@ -273,9 +273,9 @@ def __init__( |
273 | 273 | self, |
274 | 274 | *, |
275 | 275 | api_key: str | None = None, |
276 | | - environment: Literal["production", "development"] | NotGiven = NOT_GIVEN, |
277 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
278 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 276 | + environment: Literal["production", "development"] | NotGiven = not_given, |
| 277 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 278 | + timeout: float | Timeout | None | NotGiven = not_given, |
279 | 279 | max_retries: int = DEFAULT_MAX_RETRIES, |
280 | 280 | default_headers: Mapping[str, str] | None = None, |
281 | 281 | default_query: Mapping[str, object] | None = None, |
@@ -376,9 +376,9 @@ def copy( |
376 | 376 | api_key: str | None = None, |
377 | 377 | environment: Literal["production", "development"] | None = None, |
378 | 378 | base_url: str | httpx.URL | None = None, |
379 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 379 | + timeout: float | Timeout | None | NotGiven = not_given, |
380 | 380 | http_client: httpx.AsyncClient | None = None, |
381 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 381 | + max_retries: int | NotGiven = not_given, |
382 | 382 | default_headers: Mapping[str, str] | None = None, |
383 | 383 | set_default_headers: Mapping[str, str] | None = None, |
384 | 384 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments