Skip to content

Commit 36d6a66

Browse files
authored
Merge pull request #9073 from hason/patch-1
Depart method for node is optional
2 parents ce5d66e + fe6d95e commit 36d6a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def set_translator(self, name: str, translator_class: Type[nodes.NodeVisitor],
561561
self.registry.add_translator(name, translator_class, override=override)
562562

563563
def add_node(self, node: Type[Element], override: bool = False,
564-
**kwargs: Tuple[Callable, Callable]) -> None:
564+
**kwargs: Tuple[Callable, Optional[Callable]]) -> None:
565565
"""Register a Docutils node class.
566566
567567
This is necessary for Docutils internals. It may also be used in the

0 commit comments

Comments
 (0)