From 7dda7b592a7b0f727137f1421dfb60b010c20a21 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Wed, 20 Apr 2022 11:06:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20Do=20not=20let=20sphi?= =?UTF-8?q?nx=20check=20the=20config=20type=20(#559)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is already validated by myst-parser --- myst_parser/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myst_parser/__init__.py b/myst_parser/__init__.py index e51e10f7..2be73019 100644 --- a/myst_parser/__init__.py +++ b/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" @@ -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)