diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-03 15:15:58 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-03 16:07:29 +0300 |
commit | 382d8367719521764813b23582802026a992631c (patch) | |
tree | 4239a343cb73dabcdf48f1bb81cff6697bcfa16e /sphinx/registry.py | |
parent | e888e92ac4998eec38fe39e2d28b9d6eaac15067 (diff) |
Fix annotations of enumerable_nodes
Diffstat (limited to 'sphinx/registry.py')
-rw-r--r-- | sphinx/registry.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/registry.py b/sphinx/registry.py index 249b6ea52..c2085d03d 100644 --- a/sphinx/registry.py +++ b/sphinx/registry.py @@ -90,7 +90,7 @@ class SphinxComponentRegistry: #: additional enumerable nodes #: a dict of node class -> tuple of figtype and title_getter function - self.enumerable_nodes = {} # type: Dict[Type[nodes.Element], Tuple[unicode, TitleGetter]] # NOQA + self.enumerable_nodes = {} # type: Dict[Type[nodes.Node], Tuple[unicode, TitleGetter]] # NOQA #: HTML inline and block math renderers #: a dict of name -> tuple of visit function and depart function @@ -438,7 +438,7 @@ class SphinxComponentRegistry: self.latex_packages.append((name, options)) def add_enumerable_node(self, node, figtype, title_getter=None, override=False): - # type: (Type[nodes.Element], unicode, TitleGetter, bool) -> None + # type: (Type[nodes.Node], unicode, TitleGetter, bool) -> None logger.debug('[app] adding enumerable node: (%r, %r, %r)', node, figtype, title_getter) if node in self.enumerable_nodes and not override: raise ExtensionError(__('enumerable_node %r already registered') % node) |