Fix mypy violation

This commit is contained in:
Takeshi KOMIYA 2018-11-06 23:06:03 +09:00
parent 4da03dc541
commit 5fe0807e5a

View File

@ -370,7 +370,7 @@ class InheritanceDiagram(SphinxDirective):
# references to real URLs later. These nodes will eventually be # references to real URLs later. These nodes will eventually be
# removed from the doctree after we're done with them. # removed from the doctree after we're done with them.
for name in graph.get_all_class_names(): for name in graph.get_all_class_names():
refnodes, x = class_role( refnodes, x = class_role( # type: ignore
'class', ':class:`%s`' % name, name, 0, self.state) 'class', ':class:`%s`' % name, name, 0, self.state)
node.extend(refnodes) node.extend(refnodes)
# Store the graph object so we can use it to generate the # Store the graph object so we can use it to generate the