diff options
author | 2023-08-22 20:38:52 +0100 | |
---|---|---|
committer | 2023-08-28 21:39:42 +0100 | |
commit | a924e14becb37288a3dcbf8ff613ce43c24f1da6 (patch) | |
tree | 7986dea229255dfacb6f9811328d330a76aa64f2 | |
parent | Bump d.py to 2.3.2 (diff) |
Add pydantic BaseModel to target to ignore
-rw-r--r-- | docs/conf.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 683f9e51..b06300a3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -155,14 +155,15 @@ def setup(app: Sphinx) -> None: app.add_role("breaking", releases.issues_role) -ignored_modules = [ +ignored_targets = [ "async_rediscache", + "pydantic.main.BaseModel" ] # nitpick raises warnings as errors. This regex tells nitpick to ignore any warnings that match this regex. -# This is a workaround for modules that do not have docs that can be linked out to. +# This is a workaround for modules/classes that do not have docs that can be linked out to. nitpick_ignore_regex = [ - ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_modules])), + ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_targets])), ] # -- Extension configuration ------------------------------------------------- |