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/autodoc/directive.py | |
parent | d8b8ef559ef30e69fd9a73ea0f8da16351a21eb6 (diff) | |
download | sphinx-git-abc4b412209058a6658b3f62a82da13482330e5d.tar.gz |
Fix annotations for minor methods and functions
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
-rw-r--r-- | sphinx/ext/autodoc/directive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index 1f773b6e9..344f7c4cd 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -24,7 +24,7 @@ if False: from sphinx.config import Config # NOQA from sphinx.environment import BuildEnvironment # NOQA from sphinx.ext.autodoc import Documenter # NOQA - from sphinx.util.typing import unicode # NOQA + from sphinx.util.typing import N_co, unicode # NOQA logger = logging.getLogger(__name__) @@ -109,7 +109,7 @@ class AutodocDirective(SphinxDirective): final_argument_whitespace = True def run(self): - # type: () -> List[nodes.Node] + # type: () -> List[N_co] reporter = self.state.document.reporter try: |