summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 00:54:35 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 00:54:35 +0900
commita98b605100a7d8bff146b7776cfefef9f452904f (patch)
tree000682f55bc62231dfb3337367fc2505cae3e75a
parent91f95728174018aec26f3aa92649d41f63bbde60 (diff)
downloadsphinx-git-a98b605100a7d8bff146b7776cfefef9f452904f.tar.gz
Fix mypy violations (with mypy-0.931)
-rw-r--r--setup.py2
-rw-r--r--sphinx/directives/patches.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 44da14d09..a8279a14f 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ extras_require = {
'lint': [
'flake8>=3.5.0',
'isort',
- 'mypy>=0.930',
+ 'mypy>=0.931',
'docutils-stubs',
"types-typed-ast",
"types-pkg_resources",
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index f01423a88..056baa496 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -9,7 +9,7 @@
import os
import warnings
from os import path
-from typing import TYPE_CHECKING, Any, Dict, List, Tuple, cast
+from typing import TYPE_CHECKING, Any, Dict, List, Sequence, Tuple, cast
from docutils import nodes
from docutils.nodes import Node, make_id, system_message
@@ -71,7 +71,7 @@ class Figure(images.Figure):
class Meta(MetaBase, SphinxDirective):
- def run(self) -> List[Node]:
+ def run(self) -> Sequence[Node]:
result = super().run()
for node in result:
if (isinstance(node, nodes.pending) and