From babd33e3889e57eb2202412e5466b9b203ef23ef Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 5 Nov 2018 01:25:31 +0900 Subject: [PATCH] Fix typehints: sphinx.directives --- sphinx/directives/other.py | 4 ++-- 1 file 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)