diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-08 18:54:35 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-08 18:54:35 +0300 |
commit | a98b605100a7d8bff146b7776cfefef9f452904f (patch) | |
tree | 000682f55bc62231dfb3337367fc2505cae3e75a /sphinx/directives | |
parent | 91f95728174018aec26f3aa92649d41f63bbde60 (diff) |
Fix mypy violations (with mypy-0.931)
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/patches.py | 4 |
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 |