style: 型アノテーション追加

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-04-14 13:18:43 +09:00
parent 7ce58fac4f
commit e36285c6f2

View File

@ -1,5 +1,5 @@
"""バッチ処理の共通関数"""
import logging
import textwrap
from datetime import datetime
@ -88,11 +88,11 @@ def update_batch_process_complete() -> None:
return
def logging_sql(logger, sql) -> None:
def logging_sql(logger: logging.Logger, sql: str) -> None:
"""SQL文をデバッグログで出力する
Args:
logger (logging.Logger): ロガー
sql (str): SQL文
"""
logger.debug(f'\n{"-"*15}\n{textwrap.dedent(sql)[1:-1]}\n{"-"*15}')
logger.debug(f'\n{"-" * 15}\n{textwrap.dedent(sql)[1:-1]}\n{"-" * 15}')