diff --git a/haystack/document_stores/weaviate.py b/haystack/document_stores/weaviate.py index b120b5c39be..eafc52737e3 100644 --- a/haystack/document_stores/weaviate.py +++ b/haystack/document_stores/weaviate.py @@ -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: