Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
Signed-off-by: rafsaf <[email protected]>
  • Loading branch information
rafsaf committed Oct 26, 2024
1 parent d6546b4 commit d0d240e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ogion/upload_providers/google_cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def __init__(self, target_provider: GCSProviderModel) -> None:
)

if os.environ.get("STORAGE_EMULATOR_HOST"):
creds = AnonymousCredentials()
creds = AnonymousCredentials() # type: ignore[no-untyped-call]
else: # pragma: no cover
sa = json.loads(service_account_bytes.decode())
creds = service_account.Credentials.from_service_account_info(sa)
creds = service_account.Credentials.from_service_account_info(sa) # type: ignore[no-untyped-call]

self.storage_client = cloud_storage.Client(credentials=creds)
self.bucket = self.storage_client.bucket(target_provider.bucket_name)
Expand Down

0 comments on commit d0d240e

Please sign in to comment.