Skip to content

Commit

Permalink
馃憣 IMPROVE: Do not let sphinx check the config type (#559)
Browse files Browse the repository at this point in the history
This is already validated by myst-parser
  • Loading branch information
chrisjsewell committed Apr 20, 2022
1 parent 8854d84 commit 7dda7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myst_parser/__init__.py
@@ -1,5 +1,5 @@
"""An extended commonmark compliant parser, with bridges to docutils & sphinx."""
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Any

__version__ = "0.17.2"

Expand Down Expand Up @@ -37,7 +37,7 @@ def setup_sphinx(app: "Sphinx"):
for name, default, field in MdParserConfig().as_triple():
if not field.metadata.get("docutils_only", False):
# TODO add types?
app.add_config_value(f"myst_{name}", default, "env")
app.add_config_value(f"myst_{name}", default, "env", types=Any)

app.connect("builder-inited", create_myst_config)
app.connect("builder-inited", override_mathjax)
Expand Down

0 comments on commit 7dda7b5

Please sign in to comment.