|
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__ |
@@ -67,9 +67,9 @@ def __init__( |
67 | 67 | self, |
68 | 68 | *, |
69 | 69 | api_key: str | None = None, |
70 | | - environment: Literal["production", "development"] | NotGiven = NOT_GIVEN, |
71 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
72 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 70 | + environment: Literal["production", "development"] | NotGiven = not_given, |
| 71 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 72 | + timeout: float | Timeout | None | NotGiven = not_given, |
73 | 73 | max_retries: int = DEFAULT_MAX_RETRIES, |
74 | 74 | default_headers: Mapping[str, str] | None = None, |
75 | 75 | default_query: Mapping[str, object] | None = None, |
@@ -170,9 +170,9 @@ def copy( |
170 | 170 | api_key: str | None = None, |
171 | 171 | environment: Literal["production", "development"] | None = None, |
172 | 172 | base_url: str | httpx.URL | None = None, |
173 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 173 | + timeout: float | Timeout | None | NotGiven = not_given, |
174 | 174 | http_client: httpx.Client | None = None, |
175 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 175 | + max_retries: int | NotGiven = not_given, |
176 | 176 | default_headers: Mapping[str, str] | None = None, |
177 | 177 | set_default_headers: Mapping[str, str] | None = None, |
178 | 178 | default_query: Mapping[str, object] | None = None, |
@@ -269,9 +269,9 @@ def __init__( |
269 | 269 | self, |
270 | 270 | *, |
271 | 271 | api_key: str | None = None, |
272 | | - environment: Literal["production", "development"] | NotGiven = NOT_GIVEN, |
273 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
274 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 272 | + environment: Literal["production", "development"] | NotGiven = not_given, |
| 273 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 274 | + timeout: float | Timeout | None | NotGiven = not_given, |
275 | 275 | max_retries: int = DEFAULT_MAX_RETRIES, |
276 | 276 | default_headers: Mapping[str, str] | None = None, |
277 | 277 | default_query: Mapping[str, object] | None = None, |
@@ -372,9 +372,9 @@ def copy( |
372 | 372 | api_key: str | None = None, |
373 | 373 | environment: Literal["production", "development"] | None = None, |
374 | 374 | base_url: str | httpx.URL | None = None, |
375 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 375 | + timeout: float | Timeout | None | NotGiven = not_given, |
376 | 376 | http_client: httpx.AsyncClient | None = None, |
377 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 377 | + max_retries: int | NotGiven = not_given, |
378 | 378 | default_headers: Mapping[str, str] | None = None, |
379 | 379 | set_default_headers: Mapping[str, str] | None = None, |
380 | 380 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments