diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-30 00:03:13 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-30 00:03:13 +0900 |
| commit | abc4b412209058a6658b3f62a82da13482330e5d (patch) | |
| tree | 8a39c63965f7c1e53b924cbe150dc9afbe692b05 /sphinx/ext/graphviz.py | |
| parent | d8b8ef559ef30e69fd9a73ea0f8da16351a21eb6 (diff) | |
| download | sphinx-git-abc4b412209058a6658b3f62a82da13482330e5d.tar.gz | |
Fix annotations for minor methods and functions
Diffstat (limited to 'sphinx/ext/graphviz.py')
| -rw-r--r-- | sphinx/ext/graphviz.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index c2b08bce1..0dad19f98 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -35,7 +35,7 @@ if False: from docutils.parsers.rst import Directive # NOQA from typing import Any, Dict, List, Tuple, Union # NOQA from sphinx.application import Sphinx # NOQA - from sphinx.util.typing import unicode # NOQA + from sphinx.util.typing import N_co, unicode # NOQA from sphinx.writers.html import HTMLTranslator # NOQA from sphinx.writers.latex import LaTeXTranslator # NOQA from sphinx.writers.manpage import ManualPageTranslator # NOQA @@ -135,7 +135,7 @@ class Graphviz(SphinxDirective): } def run(self): - # type: () -> List[nodes.Node] + # type: () -> List[N_co] if self.arguments: document = self.state.document if self.content: @@ -194,7 +194,7 @@ class GraphvizSimple(SphinxDirective): } def run(self): - # type: () -> List[nodes.Node] + # type: () -> List[N_co] node = graphviz() node['code'] = '%s %s {\n%s\n}\n' % \ (self.name, self.arguments[0], '\n'.join(self.content)) |
