Skip to content

Commit 8909de2

Browse files
authored
👌 IMPROVE: Don't let sphinx check the config type
1 parent 8854d84 commit 8909de2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

myst_parser/__init__.py

Lines changed: 2 additions & 2 deletions
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)