Merge branch '1.8'

This commit is contained in:
Takeshi KOMIYA 2019-01-18 00:07:56 +09:00
commit 5d5eaebf16

View File

@ -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)