2929 RetryConfig ,
3030 _get_error_code ,
3131 _is_throttling_error ,
32- _retry_api_call ,
3332 retry_api_call ,
3433)
3534
@@ -424,11 +423,11 @@ def _list_databases(
424423 max_results = max_results ,
425424 )
426425 try :
427- response = _retry_api_call (
426+ response = retry_api_call (
428427 self .connection ._client .list_databases ,
429- self ._retry_config ,
430- _logger ,
431- stop_on ,
428+ config = self ._retry_config ,
429+ logger = _logger ,
430+ stop_on = stop_on ,
432431 ** request ,
433432 )
434433 except Exception as e :
@@ -498,11 +497,11 @@ def _get_table_metadata(
498497 schema_name = schema_name ,
499498 )
500499 try :
501- response = _retry_api_call (
500+ response = retry_api_call (
502501 self ._connection .client .get_table_metadata ,
503- self ._retry_config ,
504- _logger ,
505- stop_on ,
502+ config = self ._retry_config ,
503+ logger = _logger ,
504+ stop_on = stop_on ,
506505 ** request ,
507506 )
508507 except Exception as e :
@@ -553,11 +552,11 @@ def _list_table_metadata(
553552 max_results = max_results ,
554553 )
555554 try :
556- response = _retry_api_call (
555+ response = retry_api_call (
557556 self .connection ._client .list_table_metadata ,
558- self ._retry_config ,
559- _logger ,
560- stop_on ,
557+ config = self ._retry_config ,
558+ logger = _logger ,
559+ stop_on = stop_on ,
561560 ** request ,
562561 )
563562 except Exception as e :
@@ -610,7 +609,7 @@ def athena_request(
610609 )
611610
612611 def _get_query_execution (self , query_id : str ) -> AthenaQueryExecution :
613- request = {"QueryExecutionId" : query_id }
612+ request : dict [ str , Any ] = {"QueryExecutionId" : query_id }
614613 try :
615614 response = retry_api_call (
616615 self ._connection .client .get_query_execution ,
@@ -625,7 +624,7 @@ def _get_query_execution(self, query_id: str) -> AthenaQueryExecution:
625624 return AthenaQueryExecution (response )
626625
627626 def _get_calculation_execution_status (self , query_id : str ) -> AthenaCalculationExecutionStatus :
628- request = {"CalculationExecutionId" : query_id }
627+ request : dict [ str , Any ] = {"CalculationExecutionId" : query_id }
629628 try :
630629 response = retry_api_call (
631630 self ._connection .client .get_calculation_execution_status ,
@@ -640,7 +639,7 @@ def _get_calculation_execution_status(self, query_id: str) -> AthenaCalculationE
640639 return AthenaCalculationExecutionStatus (response )
641640
642641 def _get_calculation_execution (self , query_id : str ) -> AthenaCalculationExecution :
643- request = {"CalculationExecutionId" : query_id }
642+ request : dict [ str , Any ] = {"CalculationExecutionId" : query_id }
644643 try :
645644 response = retry_api_call (
646645 self ._connection .client .get_calculation_execution ,
@@ -942,7 +941,7 @@ def close(self) -> None:
942941 raise NotImplementedError # pragma: no cover
943942
944943 def _cancel (self , query_id : str ) -> None :
945- request = {"QueryExecutionId" : query_id }
944+ request : dict [ str , Any ] = {"QueryExecutionId" : query_id }
946945 try :
947946 retry_api_call (
948947 self ._connection .client .stop_query_execution ,
0 commit comments