summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-07-23 15:17:08 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-07-23 15:17:08 +0900
commitafac558d095a1bf8fb2c082abf39b6cd8af94732 (patch)
treecf5e988f917b43466d0101161e6fddb49573f1c0
parentf45dc5e1398f7850e23003cac200ad3433da2a78 (diff)
parent94f62e7f2b11298472eeadcc54e6762c15abcd40 (diff)
downloadsphinx-git-afac558d095a1bf8fb2c082abf39b6cd8af94732.tar.gz
Merge branch '5.0.x' into 5.x
-rw-r--r--setup.py2
-rw-r--r--sphinx/util/logging.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index f145ec8f7..930a20fcb 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ extras_require = {
'flake8-comprehensions',
'flake8-bugbear',
'isort',
- 'mypy>=0.950',
+ 'mypy>=0.971',
'sphinx-lint',
'docutils-stubs',
"types-typed-ast",
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index d43116f87..9b38aabdd 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -78,7 +78,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):
@@ -432,7 +432,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