style: 型アノテーション追加
This commit is contained in:
parent
7ce58fac4f
commit
e36285c6f2
@ -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}')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user