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")