diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-01-17 17:45:30 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-01-17 17:45:30 +0300 |
commit | c8c82d7cefa8b6e8b5694484f2c1222a775618b0 (patch) | |
tree | dfea70e3b9a04fa5a05006d77c90eb7272d15a6d /sphinx/util/logging.py | |
parent | 06da488f6f0b35e5a3dda140074e1fa23a3187ff (diff) |
Fix mypy violations
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r-- | sphinx/util/logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index d84535042..33b66f9c1 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -124,7 +124,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], unicode, Any, Any) -> None if isinstance(level, int): super(SphinxLoggerAdapter, self).log(level, msg, *args, **kwargs) |