diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-30 11:33:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 11:33:52 +0300 |
commit | 0355d57fc1159312a131b2e44acb4a0240b2de4e (patch) | |
tree | 225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/util/logging.py | |
parent | 7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff) | |
parent | ab184ac20d82d0546c21f33d2fdfbfb324078d56 (diff) |
Merge pull request #6972 from tk0miya/refactor_type_annotation2
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r-- | sphinx/util/logging.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 60a409093..73d89021c 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -119,14 +119,14 @@ class SphinxWarningLogRecord(SphinxLogRecord): class SphinxLoggerAdapter(logging.LoggerAdapter): """LoggerAdapter allowing ``type`` and ``subtype`` keywords.""" - def log(self, level: Union[int, str], msg: str, *args, **kwargs) -> None: + def log(self, level: Union[int, str], msg: str, *args: Any, **kwargs: Any) -> None: if isinstance(level, int): super().log(level, msg, *args, **kwargs) else: levelno = LEVEL_NAMES[level] super().log(levelno, msg, *args, **kwargs) - def verbose(self, msg: str, *args, **kwargs) -> None: + def verbose(self, msg: str, *args: Any, **kwargs: Any) -> None: self.log(VERBOSE, msg, *args, **kwargs) def process(self, msg: str, kwargs: Dict) -> Tuple[str, Dict]: # type: ignore |