summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin HasoĊˆ <martin.hason@gmail.com>2021-04-09 12:44:10 +0200
committerGitHub <noreply@github.com>2021-04-09 12:44:10 +0200
commit7327e56dff865d4766c43d46405ae827e10fd6c3 (patch)
tree0cb7f6eb7c008cd61f863cbf7bb5fb83aa44c12f
parentfcb7d01422fa5fd7540f4ee1dcc2746bb0dec56e (diff)
downloadsphinx-git-7327e56dff865d4766c43d46405ae827e10fd6c3.tar.gz
Depart method for node is optional
-rw-r--r--sphinx/application.py2
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