Skip to content

Commit

Permalink
don't auto-doc pydantic's model_computed_fields (class attr)
Browse files Browse the repository at this point in the history
following from pydantic/pydantic#8437
  • Loading branch information
2bndy5 committed Jan 31, 2024
1 parent 3cfc245 commit 042ca81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -96,7 +96,7 @@

autodoc_member_order = "bysource"
autodoc_default_options = {
"exclude-members": "__init__, __new__, model_fields, model_config"
"exclude-members": "__init__, __new__, model_fields, model_config, model_computed_fields"
}
autodoc_class_signature = "separated"
add_module_names = False
Expand Down
4 changes: 2 additions & 2 deletions docs/config.rst
Expand Up @@ -16,7 +16,7 @@ conf.py file as well. So, the `social_cards <Social_Cards>` option also needs to

.. autoclass:: sphinx_social_cards.validators.Social_Cards
:members:
:exclude-members: model_post_init, model_fields, model_config
:exclude-members: model_post_init, model_fields, model_config, model_computed_fields

.. _choosing-a-font:

Expand Down Expand Up @@ -426,4 +426,4 @@ Debugging Layouts

.. autoclass:: sphinx_social_cards.validators.Debug
:members:
:exclude-members: model_post_init, model_fields, model_config
:exclude-members: model_post_init, model_fields, model_config, model_computed_fields
2 changes: 1 addition & 1 deletion docs/layouts/typography.rst
Expand Up @@ -3,7 +3,7 @@ Layer Typography Attribute

.. autoclass:: sphinx_social_cards.validators.layers.Typography
:members:
:exclude-members: border, model_fields, model_config
:exclude-members: border, model_fields, model_config, model_computed_fields

.. autoattribute:: sphinx_social_cards.validators.layers.Typography.border

Expand Down

0 comments on commit 042ca81

Please sign in to comment.