diff options
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r-- | sphinx/directives/patches.py | 6 |
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): |