|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import TYPE_CHECKING, Any, Union, Mapping |
| 6 | +from typing import TYPE_CHECKING, 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 | Timeout, |
17 | 16 | NotGiven, |
18 | 17 | Transport, |
19 | 18 | ProxiesTypes, |
20 | 19 | RequestOptions, |
| 20 | + not_given, |
21 | 21 | ) |
22 | 22 | from ._utils import ( |
23 | 23 | is_given, |
@@ -88,7 +88,7 @@ def __init__( |
88 | 88 | api_key: str | None = None, |
89 | 89 | webhook_secret: str | None = None, |
90 | 90 | base_url: str | httpx.URL | None = None, |
91 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 91 | + timeout: float | Timeout | None | NotGiven = not_given, |
92 | 92 | max_retries: int = DEFAULT_MAX_RETRIES, |
93 | 93 | default_headers: Mapping[str, str] | None = None, |
94 | 94 | default_query: Mapping[str, object] | None = None, |
@@ -278,9 +278,9 @@ def copy( |
278 | 278 | api_key: str | None = None, |
279 | 279 | webhook_secret: str | None = None, |
280 | 280 | base_url: str | httpx.URL | None = None, |
281 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 281 | + timeout: float | Timeout | None | NotGiven = not_given, |
282 | 282 | http_client: httpx.Client | None = None, |
283 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 283 | + max_retries: int | NotGiven = not_given, |
284 | 284 | default_headers: Mapping[str, str] | None = None, |
285 | 285 | set_default_headers: Mapping[str, str] | None = None, |
286 | 286 | default_query: Mapping[str, object] | None = None, |
@@ -418,7 +418,7 @@ def __init__( |
418 | 418 | api_key: str | None = None, |
419 | 419 | webhook_secret: str | None = None, |
420 | 420 | base_url: str | httpx.URL | None = None, |
421 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 421 | + timeout: float | Timeout | None | NotGiven = not_given, |
422 | 422 | max_retries: int = DEFAULT_MAX_RETRIES, |
423 | 423 | default_headers: Mapping[str, str] | None = None, |
424 | 424 | default_query: Mapping[str, object] | None = None, |
@@ -608,9 +608,9 @@ def copy( |
608 | 608 | api_key: str | None = None, |
609 | 609 | webhook_secret: str | None = None, |
610 | 610 | base_url: str | httpx.URL | None = None, |
611 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 611 | + timeout: float | Timeout | None | NotGiven = not_given, |
612 | 612 | http_client: httpx.AsyncClient | None = None, |
613 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 613 | + max_retries: int | NotGiven = not_given, |
614 | 614 | default_headers: Mapping[str, str] | None = None, |
615 | 615 | set_default_headers: Mapping[str, str] | None = None, |
616 | 616 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments