summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 01:19:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 01:19:59 +0900
commitb90a52c93cae5f7f5273fc1ac9caf7e49861e11c (patch)
tree5a06b060d1ebd48efd3ceac78a59ad572f8d6e85 /sphinx/directives/patches.py
parent1cb47e0347b598bd79a7dcbfa70db35d0560952b (diff)
parent87eda92a52e107e9243acac055037c3d6e50819c (diff)
downloadsphinx-git-b90a52c93cae5f7f5273fc1ac9caf7e49861e11c.tar.gz
Merge branch '4.x'
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index d4d498725..d76bb74c7 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
@@ -68,7 +68,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:
# for docutils-0.17 or older. Since docutils-0.18, patching is no longer needed
@@ -83,7 +83,7 @@ class Meta(MetaBase, SphinxDirective):
# docutils' meta nodes aren't picklable because the class is nested
meta.__class__ = addnodes.meta
- return result # type: ignore
+ return result
class RSTTable(tables.RSTTable):