From 85ab57d165583fd95b86503dc3bcdbe645017140 Mon Sep 17 00:00:00 2001 From: rafsaf Date: Tue, 12 Sep 2023 03:10:57 +0200 Subject: [PATCH] fix mypy problem --- backuper/upload_providers/google_cloud_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backuper/upload_providers/google_cloud_storage.py b/backuper/upload_providers/google_cloud_storage.py index 50e7fa7..8d4b452 100644 --- a/backuper/upload_providers/google_cloud_storage.py +++ b/backuper/upload_providers/google_cloud_storage.py @@ -3,7 +3,7 @@ import os from pathlib import Path -from google.cloud import storage +import google.cloud.storage as cloud_storage from pydantic import SecretStr from backuper import config, core @@ -35,7 +35,7 @@ def __init__( f.write(service_account_bytes) os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = str(sa_path) - self.storage_client = storage.Client() + self.storage_client = cloud_storage.Client() self.bucket = self.storage_client.bucket(bucket_name) self.bucket_upload_path = bucket_upload_path self.chunk_size_bytes = chunk_size_mb * 1024 * 1024