From 111323e4b03f8c5b8424cefa7a100be29c855ae5 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:41:16 +0100 Subject: [PATCH] ignore model_computed_fields --- 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 88bbd48b..2a32591a 100644 --- a/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py +++ b/sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py @@ -211,6 +211,7 @@ def __init__(self, *args: Any) -> None: super().__init__(*args) exclude_members = self.options.setdefault("exclude-members", set()) exclude_members.add("model_fields") + exclude_members.add("model_computed_fields") exclude_members.add("model_config") self.pydantic = PydanticAutoDoc(self, is_child=False)