mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
minor: Properly unpack kwargs.
This commit is contained in:
@@ -21,7 +21,7 @@ class OutgoingHTTPAdapter(requests.adapters.HTTPAdapter):
|
|||||||
def __init__(self, role: str, timeout: int, *args: Any, **kwargs: Any) -> None:
|
def __init__(self, role: str, timeout: int, *args: Any, **kwargs: Any) -> None:
|
||||||
self.role = role
|
self.role = role
|
||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
super().__init__(*args, *kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
def send(self, *args: Any, **kwargs: Any) -> HTTPResponse:
|
def send(self, *args: Any, **kwargs: Any) -> HTTPResponse:
|
||||||
if kwargs.get("timeout") is None:
|
if kwargs.get("timeout") is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user