diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-07-23 09:16:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 09:16:33 +0300 |
commit | 94f62e7f2b11298472eeadcc54e6762c15abcd40 (patch) | |
tree | ae802a25fc5c12b787b13943affd7b5a6693fb7a | |
parent | 213c29b3aa06d85fd63c2a21457493167c260aa2 (diff) | |
parent | 5b89c39f26913d94a2685007a187bde3865f4fc6 (diff) |
Merge pull request #10693 from tk0miya/mypy-0.9715.0.x
Fix mypy violations (with mypy-0.971)
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | sphinx/util/logging.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ extras_require = { 'lint': [ 'flake8>=3.5.0', 'isort', - 'mypy>=0.950', + 'mypy>=0.971', 'docutils-stubs', "types-typed-ast", "types-requests", diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 37fa672af..a062a7d59 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -77,7 +77,7 @@ def convert_serializable(records: List[logging.LogRecord]) -> None: location = getattr(r, 'location', None) if isinstance(location, nodes.Node): - r.location = get_node_location(location) # type: ignore + r.location = get_node_location(location) class SphinxLogRecord(logging.LogRecord): @@ -431,7 +431,7 @@ class DisableWarningIsErrorFilter(logging.Filter): """Disable WarningIsErrorFilter if this filter installed.""" def filter(self, record: logging.LogRecord) -> bool: - record.skip_warningsiserror = True # type: ignore + record.skip_warningsiserror = True return True |