ソースを参照

log_utils: Add typing

Jelmer Vernooij 3 ヶ月 前
コミット
ef176f68b9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dulwich/log_utils.py

+ 1 - 1
dulwich/log_utils.py

@@ -45,7 +45,7 @@ getLogger = logging.getLogger
 class _NullHandler(logging.Handler):
     """No-op logging handler to avoid unexpected logging warnings."""
 
-    def emit(self, record) -> None:
+    def emit(self, record: logging.LogRecord) -> None:
         pass