@@ -192,7 +192,7 @@ def start_query_executions(
192192 check_workgroup : bool = True ,
193193 enforce_workgroup : bool = False ,
194194 as_iterator : bool = False ,
195- use_threads : bool | int = False
195+ use_threads : bool | int = False ,
196196) -> list [str ] | list [dict [str , typing .Any ]]:
197197 """
198198 Start multiple SQL queries against Amazon Athena.
@@ -265,10 +265,7 @@ def start_query_executions(
265265 formatted_queries = (_apply_formatter (q , params , "named" ) for q in sqls )
266266 elif paramstyle == "qmark" :
267267 _params_list = params or [None ] * len (sqls )
268- formatted_queries = (
269- _apply_formatter (q , query_params , "qmark" )
270- for q , query_params in zip (sqls , _params_list )
271- )
268+ formatted_queries = (_apply_formatter (q , query_params , "qmark" ) for q , query_params in zip (sqls , _params_list ))
272269 else :
273270 raise ValueError ("paramstyle must be 'named' or 'qmark'" )
274271
@@ -352,6 +349,7 @@ def _iter():
352349 with ThreadPoolExecutor (max_workers = max_workers ) as executor :
353350 return list (executor .map (_submit , items ))
354351
352+
355353def stop_query_execution (query_execution_id : str , boto3_session : boto3 .Session | None = None ) -> None :
356354 """Stop a query execution.
357355
0 commit comments