diff options
author | Martin HasoĊ <martin.hason@gmail.com> | 2021-04-09 12:44:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 12:44:10 +0200 |
commit | 7327e56dff865d4766c43d46405ae827e10fd6c3 (patch) | |
tree | 0cb7f6eb7c008cd61f863cbf7bb5fb83aa44c12f /sphinx/application.py | |
parent | fcb7d01422fa5fd7540f4ee1dcc2746bb0dec56e (diff) | |
download | sphinx-git-7327e56dff865d4766c43d46405ae827e10fd6c3.tar.gz |
Depart method for node is optional
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index f61a6a549..c7b293828 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -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 |