diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-01 18:14:50 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-01 19:49:14 +0900 |
commit | d6eacf3198f0ac8874e43453478d673238861675 (patch) | |
tree | a3b3add8239f0b2a5c95919ca7147acc18791926 /sphinx/ext/autodoc/directive.py | |
parent | 48bc80209da4404285863bd27e611887929426b7 (diff) | |
download | sphinx-git-d6eacf3198f0ac8874e43453478d673238861675.tar.gz |
Fix annotations for Directives (Replace N_co with nodes.Node)
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 344f7c4cd..1f773b6e9 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 N_co, unicode # NOQA + from sphinx.util.typing import unicode # NOQA logger = logging.getLogger(__name__) @@ -109,7 +109,7 @@ class AutodocDirective(SphinxDirective): final_argument_whitespace = True def run(self): - # type: () -> List[N_co] + # type: () -> List[nodes.Node] reporter = self.state.document.reporter try: |