|
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 is_given, get_async_library
|
23 | 23 | from ._compat import cached_property
|
@@ -63,7 +63,7 @@ def __init__(
|
63 | 63 | *,
|
64 | 64 | api_key: str | None = None,
|
65 | 65 | base_url: str | httpx.URL | None = None,
|
66 |
| - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 66 | + timeout: float | Timeout | None | NotGiven = not_given, |
67 | 67 | max_retries: int = DEFAULT_MAX_RETRIES,
|
68 | 68 | default_headers: Mapping[str, str] | None = None,
|
69 | 69 | default_query: Mapping[str, object] | None = None,
|
@@ -195,9 +195,9 @@ def copy(
|
195 | 195 | *,
|
196 | 196 | api_key: str | None = None,
|
197 | 197 | base_url: str | httpx.URL | None = None,
|
198 |
| - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 198 | + timeout: float | Timeout | None | NotGiven = not_given, |
199 | 199 | http_client: httpx.Client | None = None,
|
200 |
| - max_retries: int | NotGiven = NOT_GIVEN, |
| 200 | + max_retries: int | NotGiven = not_given, |
201 | 201 | default_headers: Mapping[str, str] | None = None,
|
202 | 202 | set_default_headers: Mapping[str, str] | None = None,
|
203 | 203 | default_query: Mapping[str, object] | None = None,
|
@@ -286,7 +286,7 @@ def __init__(
|
286 | 286 | *,
|
287 | 287 | api_key: str | None = None,
|
288 | 288 | base_url: str | httpx.URL | None = None,
|
289 |
| - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 289 | + timeout: float | Timeout | None | NotGiven = not_given, |
290 | 290 | max_retries: int = DEFAULT_MAX_RETRIES,
|
291 | 291 | default_headers: Mapping[str, str] | None = None,
|
292 | 292 | default_query: Mapping[str, object] | None = None,
|
@@ -418,9 +418,9 @@ def copy(
|
418 | 418 | *,
|
419 | 419 | api_key: str | None = None,
|
420 | 420 | base_url: str | httpx.URL | None = None,
|
421 |
| - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 421 | + timeout: float | Timeout | None | NotGiven = not_given, |
422 | 422 | http_client: httpx.AsyncClient | None = None,
|
423 |
| - max_retries: int | NotGiven = NOT_GIVEN, |
| 423 | + max_retries: int | NotGiven = not_given, |
424 | 424 | default_headers: Mapping[str, str] | None = None,
|
425 | 425 | set_default_headers: Mapping[str, str] | None = None,
|
426 | 426 | default_query: Mapping[str, object] | None = None,
|
|
0 commit comments