Fix types usage

This commit is contained in:
Prathamesh Musale 2025-02-06 19:13:58 +05:30
parent 831e4a14ff
commit 4ca96bbf8c
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@
# along with this program. If not, see <http:#www.gnu.org/licenses/>. # along with this program. If not, see <http:#www.gnu.org/licenses/>.
import shutil import shutil
from typing import List
import click import click
import os import os
import yaml import yaml
@ -39,7 +40,7 @@ def _fixup_container_tag(deployment_dir: str, image: str):
wfile.write(contents) wfile.write(contents)
def _fixup_url_spec(spec_file_name: str, urls: list[str]): def _fixup_url_spec(spec_file_name: str, urls: List[str]):
spec_file_path = Path(spec_file_name) spec_file_path = Path(spec_file_name)
# Load existing spec # Load existing spec

View File

@ -20,6 +20,7 @@ import shutil
import sys import sys
import tempfile import tempfile
import time import time
from typing import List
import uuid import uuid
import yaml import yaml
@ -184,7 +185,7 @@ def process_app_deployment_request( # noqa
% (app_deployment_lrn, existing_deployment_dir) % (app_deployment_lrn, existing_deployment_dir)
) )
previous_app_deployment_lrns: list[str] = deployment_record.names previous_app_deployment_lrns: List[str] = deployment_record.names
previous_fqdns = [lrn.removeprefix(f"{deployment_record_namespace}/") for lrn in previous_app_deployment_lrns] previous_fqdns = [lrn.removeprefix(f"{deployment_record_namespace}/") for lrn in previous_app_deployment_lrns]
fqdns_to_release = list(set(previous_fqdns) - set(fqdns)) fqdns_to_release = list(set(previous_fqdns) - set(fqdns))