summaryrefslogtreecommitdiff
path: root/sphinx/ext
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-12-15 17:22:07 +0000
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-12-16 16:50:24 +0100
commit1abb24e309c8189eca2663f77c3a3aa866633e12 (patch)
treee74425a4c2647b8a5c6c7c980f00235fc12491b5 /sphinx/ext
parentdc29bf9abef764460ec5ec1c1571bddce9a4f7fa (diff)
downloadsphinx-git-1abb24e309c8189eca2663f77c3a3aa866633e12.tar.gz
remove blanket 'noqas'
Diffstat (limited to 'sphinx/ext')
-rw-r--r--sphinx/ext/mathjax.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py
index a9e4deba3..e87e9ea64 100644
--- a/sphinx/ext/mathjax.py
+++ b/sphinx/ext/mathjax.py
@@ -67,7 +67,10 @@ def html_visit_displaymath(self: HTMLTranslator, node: nodes.math_block) -> None
def install_mathjax(app: Sphinx, pagename: str, templatename: str, context: Dict[str, Any],
event_arg: Any) -> None:
- if app.builder.format != 'html' or app.builder.math_renderer_name != 'mathjax': # type: ignore # NOQA
+ if (
+ app.builder.format != 'html' or
+ app.builder.math_renderer_name != 'mathjax' # type: ignore[attr-defined]
+ ):
return
if not app.config.mathjax_path:
raise ExtensionError('mathjax_path config value must be set for the '