Skip to content

Commit 8797106

Browse files
committed
fixed pyright error
1 parent 5b0f2fc commit 8797106

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/sparklespray/gcp_setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from google.cloud.storage.client import Client as GSClient
77
from sparklespray.config import SCOPES
88
from google.oauth2 import service_account
9+
from typing import List
910
import time
1011
from collections import namedtuple
1112
from google.api_core.exceptions import PermissionDenied, Forbidden
@@ -197,7 +198,9 @@ def can_reach_datastore_api(project_id, key_path):
197198
raise Exception("Failed to confirm access to datastore")
198199

199200

200-
def setup_project(project_id: str, key_path: str, bucket_name: str, image_names: str):
201+
def setup_project(
202+
project_id: str, key_path: str, bucket_name: str, image_names: List[str]
203+
):
201204
print("Enabling services for project {}...".format(project_id))
202205
enable_services(project_id)
203206
if not os.path.exists(key_path):

0 commit comments

Comments
 (0)