diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 29e274873..ba71ecbe1 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -121,7 +121,7 @@ class SphinxWarningLogRecord(SphinxLogRecord): class SphinxLoggerAdapter(logging.LoggerAdapter): """LoggerAdapter allowing ``type`` and ``subtype`` keywords.""" - def log(self, level, msg, *args, **kwargs): # type: ignore + def log(self, level, msg, *args, **kwargs): # type: (Union[int, str], str, Any, Any) -> None if isinstance(level, int): super().log(level, msg, *args, **kwargs)