summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-11-13 20:36:24 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-11-13 20:36:24 +0000
commitcd3f2e435000835dd98a11497440bc16a79ec31c (patch)
tree6c89dfa43e74f4c47a3255f38ab013cc3cf997a1 /sphinx/writers/html5.py
parenta6032e852a650c070aed66f0790e612905159f15 (diff)
downloadsphinx-git-cd3f2e435000835dd98a11497440bc16a79ec31c.tar.gz
Update typing ignores for mypy 0.990
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)