Skip to content

Commit

Permalink
explicitly mention parameters because the introspection code is funda…
Browse files Browse the repository at this point in the history
…mental here
  • Loading branch information
burnettk committed Oct 18, 2023
1 parent 7cdb8ef commit 47aeace
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/connector_http/commands/get_request_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47aeace

Please sign in to comment.