|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | import os
|
6 |
| -from typing import TYPE_CHECKING, Any, Union, Mapping, Callable, Awaitable |
| 6 | +from typing import TYPE_CHECKING, Any, Mapping, Callable, Awaitable |
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,
|
@@ -103,7 +103,7 @@ def __init__(
|
103 | 103 | webhook_secret: str | None = None,
|
104 | 104 | base_url: str | httpx.URL | None = None,
|
105 | 105 | websocket_base_url: str | httpx.URL | None = None,
|
106 |
| - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 106 | + timeout: float | Timeout | None | NotGiven = not_given, |
107 | 107 | max_retries: int = DEFAULT_MAX_RETRIES,
|
108 | 108 | default_headers: Mapping[str, str] | None = None,
|
109 | 109 | default_query: Mapping[str, object] | None = None,
|
@@ -339,9 +339,9 @@ def copy(
|
339 | 339 | webhook_secret: str | None = None,
|
340 | 340 | websocket_base_url: str | httpx.URL | None = None,
|
341 | 341 | base_url: str | httpx.URL | None = None,
|
342 |
| - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 342 | + timeout: float | Timeout | None | NotGiven = not_given, |
343 | 343 | http_client: httpx.Client | None = None,
|
344 |
| - max_retries: int | NotGiven = NOT_GIVEN, |
| 344 | + max_retries: int | NotGiven = not_given, |
345 | 345 | default_headers: Mapping[str, str] | None = None,
|
346 | 346 | set_default_headers: Mapping[str, str] | None = None,
|
347 | 347 | default_query: Mapping[str, object] | None = None,
|
@@ -448,7 +448,7 @@ def __init__(
|
448 | 448 | webhook_secret: str | None = None,
|
449 | 449 | base_url: str | httpx.URL | None = None,
|
450 | 450 | websocket_base_url: str | httpx.URL | None = None,
|
451 |
| - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, |
| 451 | + timeout: float | Timeout | None | NotGiven = not_given, |
452 | 452 | max_retries: int = DEFAULT_MAX_RETRIES,
|
453 | 453 | default_headers: Mapping[str, str] | None = None,
|
454 | 454 | default_query: Mapping[str, object] | None = None,
|
@@ -684,9 +684,9 @@ def copy(
|
684 | 684 | webhook_secret: str | None = None,
|
685 | 685 | websocket_base_url: str | httpx.URL | None = None,
|
686 | 686 | base_url: str | httpx.URL | None = None,
|
687 |
| - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, |
| 687 | + timeout: float | Timeout | None | NotGiven = not_given, |
688 | 688 | http_client: httpx.AsyncClient | None = None,
|
689 |
| - max_retries: int | NotGiven = NOT_GIVEN, |
| 689 | + max_retries: int | NotGiven = not_given, |
690 | 690 | default_headers: Mapping[str, str] | None = None,
|
691 | 691 | set_default_headers: Mapping[str, str] | None = None,
|
692 | 692 | default_query: Mapping[str, object] | None = None,
|
|
0 commit comments