From f7bbc8fd32f7ca958c9deb8c6e02738fb7382915 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Mon, 13 Nov 2023 13:53:42 -0800 Subject: [PATCH] update namespace for pydantic API v2.5 (#303) Apparently this is backward compatible to v2.2, so there's no need to update our pinned pydantic version. resolves #302 --- sphinx_immaterial/custom_admonitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_immaterial/custom_admonitions.py b/sphinx_immaterial/custom_admonitions.py index 86734b3a9..12054f7f1 100644 --- a/sphinx_immaterial/custom_admonitions.py +++ b/sphinx_immaterial/custom_admonitions.py @@ -43,7 +43,7 @@ CSSClassType = Annotated[ - str, pydantic.functional_validators.AfterValidator(nodes.make_id) + str, pydantic.AfterValidator(nodes.make_id) ] # defaults used for version directives re-styling