|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import TYPE_CHECKING, Any, Dict, Union, Mapping, cast |
| 6 | +from typing import TYPE_CHECKING, 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 ._compat import cached_property |
@@ -74,9 +74,9 @@ def __init__( |
74 | 74 | self, |
75 | 75 | *, |
76 | 76 | api_key: str | None = None, |
77 | | - environment: Literal["production", "dev", "local_multi_tenant", "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", "dev", "local_multi_tenant", "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, |
@@ -243,9 +243,9 @@ def copy( |
243 | 243 | api_key: str | None = None, |
244 | 244 | environment: Literal["production", "dev", "local_multi_tenant", "local"] | None = None, |
245 | 245 | base_url: str | httpx.URL | None = None, |
246 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 246 | + timeout: float | Timeout | None | NotGiven = not_given, |
247 | 247 | http_client: httpx.Client | None = None, |
248 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 248 | + max_retries: int | NotGiven = not_given, |
249 | 249 | default_headers: Mapping[str, str] | None = None, |
250 | 250 | set_default_headers: Mapping[str, str] | None = None, |
251 | 251 | default_query: Mapping[str, object] | None = None, |
@@ -334,9 +334,9 @@ def __init__( |
334 | 334 | self, |
335 | 335 | *, |
336 | 336 | api_key: str | None = None, |
337 | | - environment: Literal["production", "dev", "local_multi_tenant", "local"] | NotGiven = NOT_GIVEN, |
338 | | - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, |
339 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 337 | + environment: Literal["production", "dev", "local_multi_tenant", "local"] | NotGiven = not_given, |
| 338 | + base_url: str | httpx.URL | None | NotGiven = not_given, |
| 339 | + timeout: float | Timeout | None | NotGiven = not_given, |
340 | 340 | max_retries: int = DEFAULT_MAX_RETRIES, |
341 | 341 | default_headers: Mapping[str, str] | None = None, |
342 | 342 | default_query: Mapping[str, object] | None = None, |
@@ -503,9 +503,9 @@ def copy( |
503 | 503 | api_key: str | None = None, |
504 | 504 | environment: Literal["production", "dev", "local_multi_tenant", "local"] | None = None, |
505 | 505 | base_url: str | httpx.URL | None = None, |
506 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 506 | + timeout: float | Timeout | None | NotGiven = not_given, |
507 | 507 | http_client: httpx.AsyncClient | None = None, |
508 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 508 | + max_retries: int | NotGiven = not_given, |
509 | 509 | default_headers: Mapping[str, str] | None = None, |
510 | 510 | set_default_headers: Mapping[str, str] | None = None, |
511 | 511 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments