summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/directive.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-30 00:03:13 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-30 00:03:13 +0900
commitabc4b412209058a6658b3f62a82da13482330e5d (patch)
tree8a39c63965f7c1e53b924cbe150dc9afbe692b05 /sphinx/ext/autodoc/directive.py
parentd8b8ef559ef30e69fd9a73ea0f8da16351a21eb6 (diff)
downloadsphinx-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.py4
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: