We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e14d5b4 commit c5ecd70Copy full SHA for c5ecd70
src/mkdocstrings_handlers/python/config.py
@@ -25,6 +25,11 @@
25
# "yaml.schemas": {
26
# "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
27
# }
28
+ import pydantic
29
+
30
+ if getattr(pydantic, "__version__", "1.").startswith("1."):
31
+ raise ImportError # noqa: TRY301
32
33
from inspect import cleandoc
34
35
from pydantic import Field as BaseField
0 commit comments