From 7327e56dff865d4766c43d46405ae827e10fd6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Haso=C5=88?= Date: Fri, 9 Apr 2021 12:44:10 +0200 Subject: [PATCH] Depart method for node is optional --- sphinx/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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