From 47aeaced2218cec5781f072e3844e08e07665638 Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 18 Oct 2023 17:27:05 -0400 Subject: [PATCH] explicitly mention parameters because the introspection code is fundamental here --- src/connector_http/commands/get_request_v2.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/connector_http/commands/get_request_v2.py b/src/connector_http/commands/get_request_v2.py index 42c6e73..1b13b04 100644 --- a/src/connector_http/commands/get_request_v2.py +++ b/src/connector_http/commands/get_request_v2.py @@ -9,9 +9,14 @@ class GetRequestV2(ConnectorCommand, HttpRequestBase): def __init__(self, - attempts: int | None = None, **kwargs: Any + url: str, + headers: dict[str, str] | None = None, + params: dict[str, str] | None = None, + basic_auth_username: str | None = None, + basic_auth_password: str | None = None, + attempts: int | None = None, ): - HttpRequestBase.__init__(self, **kwargs) + HttpRequestBase.__init__(self, url=url, headers=headers, params=params, basic_auth_username=basic_auth_username, basic_auth_password=basic_auth_password) if not isinstance(attempts, int) or attempts < 1 or attempts > 10: attempts = 1 self.attempts = attempts