Skip to content

Commit f20d694

Browse files
committed
chore(athena): ruff/black style cleanups in _executions.py
1 parent 89449cb commit f20d694

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

awswrangler/athena/_executions.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
355353
def stop_query_execution(query_execution_id: str, boto3_session: boto3.Session | None = None) -> None:
356354
"""Stop a query execution.
357355

0 commit comments

Comments
 (0)