Skip to content

Commit

Permalink
Typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jun 6, 2024
1 parent e3ab792 commit 39f3adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack_experimental/components/tools/openapi/_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def __init__( # noqa: PLR0913 pylint: disable=too-many-arguments
self.request_sender = request_sender or send_request
self.llm_provider: LLMProvider = llm_provider or LLMProvider.OPENAI

def get_auth_function(self) -> Callable[[dict[str, Any], dict[str, Any]], Any]:
def get_auth_function(self) -> Callable[[Dict[str, Any], Dict[str, Any]], Any]:
"""
Get the authentication function that sets a schema specified authentication to the request.
Expand Down Expand Up @@ -401,7 +401,7 @@ def get_payload_extractor(self):

def _create_authentication_from_string(
self, credentials: str, security_schemes: Dict[str, Any]
) -> Callable[[dict[str, Any], dict[str, Any]], Any]:
) -> Callable[[Dict[str, Any], Dict[str, Any]], Any]:
for scheme in security_schemes.values():
if scheme["type"] == "apiKey":
return create_api_key_auth_function(api_key=credentials)
Expand Down

0 comments on commit 39f3adc

Please sign in to comment.