@@ -287,9 +287,7 @@ def minutes(x: timedelta) -> int:
287287 ),
288288 )
289289 database = ensure_type (
290- ExasolDatabase ,
291- resp ,
292- f"Failed to create database { name } " ,
290+ ExasolDatabase , resp , f"Failed to create database { name } "
293291 )
294292 LOG .info ("Created database with ID %s" , database .id )
295293 return database
@@ -369,7 +367,8 @@ def delete_with_retry() -> None:
369367
370368 def list_database_ids (self ) -> Iterable [str ]:
371369 resp = list_databases .sync (self ._account_id , client = self ._client ) or []
372- dbs = ensure_type (list [ExasolDatabase ], resp , "Failed to list databases" )
370+ # actually list[ExasolDatabase]
371+ dbs = ensure_type (list , resp , "Failed to list databases" )
373372 return (db .id for db in dbs )
374373
375374 @contextmanager
@@ -440,10 +439,9 @@ def clusters(
440439 )
441440 or []
442441 )
442+ # actually list[openapi.models.Cluster]
443443 return ensure_type (
444- list [openapi .models .Cluster ],
445- resp ,
446- f"Failed to list clusters of database { database_id } " ,
444+ list , resp , f"Failed to list clusters of database { database_id } "
447445 )
448446
449447 def get_connection (
@@ -466,11 +464,8 @@ def get_connection(
466464
467465 def list_allowed_ip_ids (self ) -> Iterable [str ]:
468466 resp = list_allowed_i_ps .sync (self ._account_id , client = self ._client ) or []
469- ips = ensure_type (
470- list [openapi .models .AllowedIP ],
471- resp ,
472- "Failed to retrieve the list of allowed ips" ,
473- )
467+ # actually list[openapi.models.AllowedIP]
468+ ips = ensure_type (list , resp , "Failed to retrieve the list of allowed ips" )
474469 return (x .id for x in ips )
475470
476471 def add_allowed_ip (
0 commit comments