|
4 | 4 |
|
5 | 5 | import os |
6 | 6 | import base64 |
7 | | -from typing import TYPE_CHECKING, Any, Union, Mapping |
| 7 | +from typing import TYPE_CHECKING, Any, Mapping |
8 | 8 | from typing_extensions import Self, override |
9 | 9 |
|
10 | 10 | import httpx |
11 | 11 |
|
12 | 12 | from . import _exceptions |
13 | 13 | from ._qs import Querystring |
14 | 14 | from ._types import ( |
15 | | - NOT_GIVEN, |
16 | 15 | Omit, |
17 | 16 | Headers, |
18 | 17 | Timeout, |
19 | 18 | NotGiven, |
20 | 19 | Transport, |
21 | 20 | ProxiesTypes, |
22 | 21 | RequestOptions, |
| 22 | + not_given, |
23 | 23 | ) |
24 | 24 | from ._utils import is_given, get_async_library |
25 | 25 | from ._compat import cached_property |
@@ -73,7 +73,7 @@ def __init__( |
73 | 73 | client_secret: str | None = None, |
74 | 74 | webhook_secret: str | None = None, |
75 | 75 | base_url: str | httpx.URL | None = None, |
76 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 76 | + timeout: float | Timeout | None | NotGiven = not_given, |
77 | 77 | max_retries: int = DEFAULT_MAX_RETRIES, |
78 | 78 | default_headers: Mapping[str, str] | None = None, |
79 | 79 | default_query: Mapping[str, object] | None = None, |
@@ -261,9 +261,9 @@ def copy( |
261 | 261 | client_secret: str | None = None, |
262 | 262 | webhook_secret: str | None = None, |
263 | 263 | base_url: str | httpx.URL | None = None, |
264 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 264 | + timeout: float | Timeout | None | NotGiven = not_given, |
265 | 265 | http_client: httpx.Client | None = None, |
266 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 266 | + max_retries: int | NotGiven = not_given, |
267 | 267 | default_headers: Mapping[str, str] | None = None, |
268 | 268 | set_default_headers: Mapping[str, str] | None = None, |
269 | 269 | default_query: Mapping[str, object] | None = None, |
@@ -423,7 +423,7 @@ def __init__( |
423 | 423 | client_secret: str | None = None, |
424 | 424 | webhook_secret: str | None = None, |
425 | 425 | base_url: str | httpx.URL | None = None, |
426 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 426 | + timeout: float | Timeout | None | NotGiven = not_given, |
427 | 427 | max_retries: int = DEFAULT_MAX_RETRIES, |
428 | 428 | default_headers: Mapping[str, str] | None = None, |
429 | 429 | default_query: Mapping[str, object] | None = None, |
@@ -611,9 +611,9 @@ def copy( |
611 | 611 | client_secret: str | None = None, |
612 | 612 | webhook_secret: str | None = None, |
613 | 613 | base_url: str | httpx.URL | None = None, |
614 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 614 | + timeout: float | Timeout | None | NotGiven = not_given, |
615 | 615 | http_client: httpx.AsyncClient | None = None, |
616 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 616 | + max_retries: int | NotGiven = not_given, |
617 | 617 | default_headers: Mapping[str, str] | None = None, |
618 | 618 | set_default_headers: Mapping[str, str] | None = None, |
619 | 619 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments