Depart method for node is optional

This commit is contained in:
Martin Hasoň 2021-04-09 12:44:10 +02:00 committed by GitHub
parent fcb7d01422
commit 7327e56dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -564,7 +564,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