diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-04 19:25:31 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-05 18:26:29 +0300 |
commit | babd33e3889e57eb2202412e5466b9b203ef23ef (patch) | |
tree | 3eb587adfdc5b18376dd02909f1ca5abd5e29d20 /sphinx/directives | |
parent | 99bb07740ea2912d087a4937953ca65d8e358da8 (diff) |
Fix typehints: sphinx.directives
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/other.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index ab3cfc37c..2c9d8ea1d 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -165,7 +165,7 @@ class Author(SphinxDirective): # type: () -> List[nodes.Node] if not self.config.show_authors: return [] - para = nodes.paragraph(translatable=False) + para = nodes.paragraph(translatable=False) # type: nodes.Node emph = nodes.emphasis() para += emph if self.name == 'sectionauthor': @@ -247,7 +247,7 @@ class Centered(SphinxDirective): # type: () -> List[nodes.Node] if not self.arguments: return [] - subnode = addnodes.centered() + subnode = addnodes.centered() # type: nodes.Node inodes, messages = self.state.inline_text(self.arguments[0], self.lineno) subnode.extend(inodes) |