summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/html5.py')
-rw-r--r--sphinx/writers/html5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index a68951a7f..f8b22de27 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -805,7 +805,7 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
def depart_math(self, node: Element, math_env: str = '') -> None:
name = self.builder.math_renderer_name
_, depart = self.builder.app.registry.html_inline_math_renderers[name]
- if depart:
+ if depart: # type: ignore[truthy-function]
depart(self, node)
def visit_math_block(self, node: Element, math_env: str = '') -> None:
@@ -816,5 +816,5 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
def depart_math_block(self, node: Element, math_env: str = '') -> None:
name = self.builder.math_renderer_name
_, depart = self.builder.app.registry.html_block_math_renderers[name]
- if depart:
+ if depart: # type: ignore[truthy-function]
depart(self, node)