From dc82093bbfe68c2e2245e25dca057a4caf5fccf8 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:17:39 +0100 Subject: [PATCH] added settings_customise_sources --- sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py b/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py index 2a32591a..4c611e96 100644 --- a/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py +++ b/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py @@ -210,6 +210,7 @@ def can_document_member(cls, def __init__(self, *args: Any) -> None: super().__init__(*args) exclude_members = self.options.setdefault("exclude-members", set()) + exclude_members.add("settings_customise_sources") exclude_members.add("model_fields") exclude_members.add("model_computed_fields") exclude_members.add("model_config")