Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-07-23 09:16:33 +0300
committerGitHub <noreply@github.com>2022-07-23 09:16:33 +0300
commit94f62e7f2b11298472eeadcc54e6762c15abcd40 (patch)
treeae802a25fc5c12b787b13943affd7b5a6693fb7a
parent213c29b3aa06d85fd63c2a21457493167c260aa2 (diff)
parent5b89c39f26913d94a2685007a187bde3865f4fc6 (diff)
Merge pull request #10693 from tk0miya/mypy-0.9715.0.x
Fix mypy violations (with mypy-0.971)
-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 4ec215697..89f09803f 100644
--- a/setup.py
+++ b/setup.py
@@ -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