From 7f8292e8cc6c6af018f753d38d3dd51b07133984 Mon Sep 17 00:00:00 2001 From: Google Earth Engine Authors Date: Thu, 12 Dec 2024 13:02:19 -0800 Subject: [PATCH] Internal changes. PiperOrigin-RevId: 705604667 --- python/ee/cli/eecli.py | 4 +++- python/ee/cli/utils.py | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python/ee/cli/eecli.py b/python/ee/cli/eecli.py index 0dc50235d..0708ef0db 100644 --- a/python/ee/cli/eecli.py +++ b/python/ee/cli/eecli.py @@ -50,7 +50,9 @@ def _run_command(*argv): args = parser.parse_args() config = utils.CommandLineConfig( - args.ee_config, args.service_account_file, args.project_override + config_file=args.ee_config, + service_account_file=args.service_account_file, + project_override=args.project_override, ) # Catch EEException errors, which wrap server-side Earth Engine diff --git a/python/ee/cli/utils.py b/python/ee/cli/utils.py index 4d11e955e..cdc0ff6be 100644 --- a/python/ee/cli/utils.py +++ b/python/ee/cli/utils.py @@ -13,7 +13,7 @@ import tempfile import threading import time -from typing import AnyStr, Dict, Iterable, List, Tuple, Union +from typing import Any, AnyStr, Dict, Iterable, List, Optional, Tuple, Union import urllib.parse from google.cloud import storage @@ -71,8 +71,11 @@ class CommandLineConfig: url: str def __init__( - self, config_file=None, service_account_file=None, - project_override=None): + self, + config_file=None, + service_account_file=None, + project_override=None, + ): if not config_file: config_file = os.environ.get(EE_CONFIG_FILE, DEFAULT_EE_CONFIG_FILE) self.config_file = config_file