diff --git a/sphinx_immaterial/apidoc/generic_synopses.py b/sphinx_immaterial/apidoc/generic_synopses.py index 3f0a5466..e572a005 100644 --- a/sphinx_immaterial/apidoc/generic_synopses.py +++ b/sphinx_immaterial/apidoc/generic_synopses.py @@ -50,7 +50,7 @@ def after_content(self: GenericObject) -> None: orig_merge_domaindata = StandardDomain.merge_domaindata - def merge_domaindata(self, docnames: List[str], otherdata: dict) -> None: + def merge_domaindata(self, docnames, otherdata: dict) -> None: orig_merge_domaindata(self, docnames, otherdata) self.data["synopses"].update(otherdata["synopses"]) diff --git a/sphinx_immaterial/apidoc/json/domain.py b/sphinx_immaterial/apidoc/json/domain.py index 4ad2aef8..3e1eed4c 100644 --- a/sphinx_immaterial/apidoc/json/domain.py +++ b/sphinx_immaterial/apidoc/json/domain.py @@ -1150,7 +1150,7 @@ def get_objects(self) -> Iterator[Tuple[str, str, str, str, str, int]]: else OBJECT_PRIORITY_UNIMPORTANT, ) - def merge_domaindata(self, docnames: List[str], otherdata: Dict) -> None: + def merge_domaindata(self, docnames, otherdata: Dict) -> None: self.schemas.update(otherdata["schemas"]) def _find_schema( diff --git a/sphinx_immaterial/apidoc/python/synopses.py b/sphinx_immaterial/apidoc/python/synopses.py index 714ec29d..f1abed4d 100644 --- a/sphinx_immaterial/apidoc/python/synopses.py +++ b/sphinx_immaterial/apidoc/python/synopses.py @@ -130,7 +130,7 @@ def after_content(self: PyObject) -> None: orig_merge_domaindata = PythonDomain.merge_domaindata - def merge_domaindata(self, docnames: List[str], otherdata: dict) -> None: + def merge_domaindata(self, docnames, otherdata: dict) -> None: orig_merge_domaindata(self, docnames, otherdata) self.data["synopses"].update(otherdata["synopses"]) diff --git a/sphinx_immaterial/local_mathjax.py b/sphinx_immaterial/local_mathjax.py index 7c97482c..daea3d62 100644 --- a/sphinx_immaterial/local_mathjax.py +++ b/sphinx_immaterial/local_mathjax.py @@ -4,7 +4,8 @@ from sphinx.application import Sphinx from sphinx.config import Config from sphinx.errors import ExtensionError -from sphinx.ext.mathjax import MATHJAX_URL, MathDomain +from sphinx.domains.math import MathDomain +from sphinx.ext.mathjax import MATHJAX_URL from sphinx.environment import BuildEnvironment