瀏覽代碼

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