From 88530c9102b07e1af5cdd45e94cc5e5c6a2aafc4 Mon Sep 17 00:00:00 2001 From: Bazyli Cyran Date: Tue, 3 Oct 2023 19:25:10 +0200 Subject: [PATCH] docs: Exclude pydantic internal fields from API model docs --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index fe6ca35..0223d64 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,3 +67,6 @@ autodoc_typehints = "signature" autodoc_typehints_format = "short" autodoc_typehints_description_target = "documented" +autodoc_default_options = { + "exclude-members": "model_config, model_fields", +}