Skip to content

Commit 9bb8b3b

Browse files
authored
Merge pull request #265 from ArangoDB-Community/fix-request-timeout-typing
Fix `request_timeout` typing
2 parents 744a6e9 + c5d38c3 commit 9bb8b3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arango/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(
9494
serializer: Callable[..., str] = default_serializer,
9595
deserializer: Callable[[str], Any] = default_deserializer,
9696
verify_override: Union[bool, str, None] = None,
97-
request_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
97+
request_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
9898
) -> None:
9999
if isinstance(hosts, str):
100100
self._hosts = [host.strip("/") for host in hosts.split(",")]

arango/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class DefaultHTTPAdapter(HTTPAdapter):
9696

9797
def __init__(
9898
self,
99-
connection_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
99+
connection_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
100100
pool_connections: int = DEFAULT_POOLSIZE,
101101
pool_maxsize: int = DEFAULT_POOLSIZE,
102102
pool_timeout: Union[int, float, None] = None,
@@ -150,7 +150,7 @@ class DefaultHTTPClient(HTTPClient):
150150

151151
def __init__(
152152
self,
153-
request_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
153+
request_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
154154
retry_attempts: int = 3,
155155
backoff_factor: float = 1.0,
156156
pool_connections: int = 10,

0 commit comments

Comments
 (0)