|
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 datetime import datetime |
8 | 8 | from typing_extensions import Self, override |
9 | 9 |
|
|
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 |
@@ -276,7 +276,7 @@ def __init__( |
276 | 276 | user_service_key: str | None = None, |
277 | 277 | base_url: str | httpx.URL | None = None, |
278 | 278 | api_version: str | None = None, |
279 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 279 | + timeout: float | Timeout | None | NotGiven = not_given, |
280 | 280 | max_retries: int = DEFAULT_MAX_RETRIES, |
281 | 281 | default_headers: Mapping[str, str] | None = None, |
282 | 282 | default_query: Mapping[str, object] | None = None, |
@@ -1002,9 +1002,9 @@ def copy( |
1002 | 1002 | user_service_key: str | None = None, |
1003 | 1003 | base_url: str | httpx.URL | None = None, |
1004 | 1004 | api_version: str | None = None, |
1005 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 1005 | + timeout: float | Timeout | None | NotGiven = not_given, |
1006 | 1006 | http_client: httpx.Client | None = None, |
1007 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 1007 | + max_retries: int | NotGiven = not_given, |
1008 | 1008 | default_headers: Mapping[str, str] | None = None, |
1009 | 1009 | set_default_headers: Mapping[str, str] | None = None, |
1010 | 1010 | default_query: Mapping[str, object] | None = None, |
@@ -1102,7 +1102,7 @@ def __init__( |
1102 | 1102 | user_service_key: str | None = None, |
1103 | 1103 | base_url: str | httpx.URL | None = None, |
1104 | 1104 | api_version: str | None = None, |
1105 | | - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 1105 | + timeout: float | Timeout | None | NotGiven = not_given, |
1106 | 1106 | max_retries: int = DEFAULT_MAX_RETRIES, |
1107 | 1107 | default_headers: Mapping[str, str] | None = None, |
1108 | 1108 | default_query: Mapping[str, object] | None = None, |
@@ -1828,9 +1828,9 @@ def copy( |
1828 | 1828 | user_service_key: str | None = None, |
1829 | 1829 | base_url: str | httpx.URL | None = None, |
1830 | 1830 | api_version: str | None = None, |
1831 | | - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 1831 | + timeout: float | Timeout | None | NotGiven = not_given, |
1832 | 1832 | http_client: httpx.AsyncClient | None = None, |
1833 | | - max_retries: int | NotGiven = NOT_GIVEN, |
| 1833 | + max_retries: int | NotGiven = not_given, |
1834 | 1834 | default_headers: Mapping[str, str] | None = None, |
1835 | 1835 | set_default_headers: Mapping[str, str] | None = None, |
1836 | 1836 | default_query: Mapping[str, object] | None = None, |
|
0 commit comments