mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9073 from hason/patch-1
Depart method for node is optional
This commit is contained in:
commit
36d6a66609
@ -561,7 +561,7 @@ class Sphinx:
|
||||
self.registry.add_translator(name, translator_class, override=override)
|
||||
|
||||
def add_node(self, node: Type[Element], override: bool = False,
|
||||
**kwargs: Tuple[Callable, Callable]) -> None:
|
||||
**kwargs: Tuple[Callable, Optional[Callable]]) -> None:
|
||||
"""Register a Docutils node class.
|
||||
|
||||
This is necessary for Docutils internals. It may also be used in the
|
||||
|
Loading…
Reference in New Issue
Block a user