소스 검색

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