55import shutil
66import tempfile
77import time
8- from typing import Tuple , List , Dict
8+ from typing import Tuple , Dict
99
1010from cloudfoundry_client .client import CloudFoundryClient
1111from cloudfoundry_client .operations .push .cf_ignore import CfIgnore
@@ -105,7 +105,7 @@ def _merge_environment(app: Entity | None, app_manifest: dict) -> dict:
105105 return environment
106106
107107 def _route_application (
108- self , organization : Entity , space : Entity , app : Entity , no_route : bool , routes : List [str ], random_route : bool
108+ self , organization : Entity , space : Entity , app : Entity , no_route : bool , routes : list [str ], random_route : bool
109109 ):
110110 existing_routes = [route for route in app .routes ()]
111111 if no_route :
@@ -115,7 +115,7 @@ def _route_application(
115115 else :
116116 self ._build_new_requested_routes (organization , space , app , existing_routes , routes )
117117
118- def _remove_all_routes (self , app : Entity , routes : List [Entity ]):
118+ def _remove_all_routes (self , app : Entity , routes : list [Entity ]):
119119 for route in routes :
120120 self .client .v2 .apps .remove_route (app ["metadata" ]["guid" ], route ["metadata" ]["guid" ])
121121
@@ -142,7 +142,7 @@ def _build_default_route(self, space: Entity, app: Entity, random_route: bool):
142142 self .client .v2 .apps .associate_route (app ["metadata" ]["guid" ], route ["metadata" ]["guid" ])
143143
144144 def _build_new_requested_routes (
145- self , organization : Entity , space : Entity , app : Entity , existing_routes : List [Entity ], requested_routes : List [str ]
145+ self , organization : Entity , space : Entity , app : Entity , existing_routes : list [Entity ], requested_routes : list [str ]
146146 ):
147147 private_domains = {domain ["entity" ]["name" ]: domain for domain in organization .private_domains ()}
148148 shared_domains = {domain ["entity" ]["name" ]: domain for domain in self .client .v2 .shared_domains .list ()}
@@ -310,7 +310,7 @@ def _load_all_resources(top_directory: str) -> dict:
310310 )
311311 return application_items
312312
313- def _bind_services (self , space : Entity , app : Entity , services : List [str ]):
313+ def _bind_services (self , space : Entity , app : Entity , services : list [str ]):
314314 service_instances = [
315315 service_instance for service_instance in space .service_instances (return_user_provided_service_instances = "true" )
316316 ]
0 commit comments