Merge pull request #9073 from hason/patch-1

Depart method for node is optional
This commit is contained in:
Takeshi KOMIYA 2021-04-10 00:57:45 +09:00 committed by GitHub
commit 36d6a66609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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