Skip to content

Commit 7dda7b5

Browse files
authored
👌 IMPROVE: Do not let sphinx check the config type (#559)
This is already validated by myst-parser
1 parent 8854d84 commit 7dda7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

myst_parser/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""An extended commonmark compliant parser, with bridges to docutils & sphinx."""
2-
from typing import TYPE_CHECKING
2+
from typing import TYPE_CHECKING, Any
33

44
__version__ = "0.17.2"
55

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

4242
app.connect("builder-inited", create_myst_config)
4343
app.connect("builder-inited", override_mathjax)

0 commit comments

Comments
 (0)