summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 01:07:56 +0900
committerGitHub <noreply@github.com>2022-01-09 01:07:56 +0900
commitc81dd9b82f2f33a4cd91e6f065663e1ca6b460be (patch)
treea3d7e0c5023e681d21d1b39efe43b56d6e73a950 /sphinx/directives/patches.py
parent91f95728174018aec26f3aa92649d41f63bbde60 (diff)
parenta80023f381e8458a77e730385357fe1fd309790d (diff)
downloadsphinx-git-4.3.x.tar.gz
Merge pull request #10065 from tk0miya/mypy-0.9314.3.x
Fix mypy violations (with mypy-0.931)
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py4
1 files changed, 2 insertions, 2 deletions
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