Skip to content

Commit

Permalink
Fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed May 18, 2023
1 parent b7fc1e3 commit 20b49b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haystack/document_stores/weaviate.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def _get_auth_secret(
password: Optional[str] = None,
client_secret: Optional[str] = None,
access_token: Optional[str] = None,
expires_in: int = 60,
expires_in: Optional[int] = 60,
refresh_token: Optional[str] = None,
scope: str = "offline_access",
) -> Optional[Union[AuthClientPassword, AuthClientCredentials, AuthBearerToken]]:
scope: Optional[str] = "offline_access",
) -> Optional[Union["AuthClientPassword", "AuthClientCredentials", "AuthBearerToken"]]:
if username and password:
return AuthClientPassword(username, password, scope=scope)
elif client_secret:
Expand Down

0 comments on commit 20b49b6

Please sign in to comment.