Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Dec 15, 2023
1 parent 1e35960 commit 9cf33bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions integrations/google-vertex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ exclude_lines = [

[[tool.mypy.overrides]]
module = [
"google.*",
"vertexai.*",
"haystack.*",
"pytest.*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
from typing import Optional

import vertexai
from google.auth.api_key import Credentials


def authenticate(api_key: str = "", project_id: str = "", location: str = ""):
def authenticate(api_key: str = "", project_id: str = "", location: Optional[str] = None):
"""
Authenticates using the provided API key, project ID, and location.
Expand Down

0 comments on commit 9cf33bf

Please sign in to comment.