Skip to content

Commit

Permalink
Merge pull request #265 from ArangoDB-Community/fix-request-timeout-t…
Browse files Browse the repository at this point in the history
…yping

Fix `request_timeout` typing
  • Loading branch information
geenen124 committed Aug 1, 2023
2 parents 744a6e9 + c5d38c3 commit 9bb8b3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arango/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
serializer: Callable[..., str] = default_serializer,
deserializer: Callable[[str], Any] = default_deserializer,
verify_override: Union[bool, str, None] = None,
request_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
request_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
) -> None:
if isinstance(hosts, str):
self._hosts = [host.strip("/") for host in hosts.split(",")]
Expand Down
4 changes: 2 additions & 2 deletions arango/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class DefaultHTTPAdapter(HTTPAdapter):

def __init__(
self,
connection_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
connection_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
pool_connections: int = DEFAULT_POOLSIZE,
pool_maxsize: int = DEFAULT_POOLSIZE,
pool_timeout: Union[int, float, None] = None,
Expand Down Expand Up @@ -150,7 +150,7 @@ class DefaultHTTPClient(HTTPClient):

def __init__(
self,
request_timeout: Union[int, float] = DEFAULT_REQUEST_TIMEOUT,
request_timeout: Union[int, float, None] = DEFAULT_REQUEST_TIMEOUT,
retry_attempts: int = 3,
backoff_factor: float = 1.0,
pool_connections: int = 10,
Expand Down

0 comments on commit 9bb8b3b

Please sign in to comment.