Skip to content

Commit

Permalink
Tweak documentation of Field.exclude (#7086)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Aug 15, 2023
1 parent 35144d0 commit 69357e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic/fields.py
Expand Up @@ -92,7 +92,7 @@ class FieldInfo(_repr.Representation):
title: The title of the field.
description: The description of the field.
examples: List of examples of the field.
exclude: Whether to exclude the field from the model schema.
exclude: Whether to exclude the field from the model serialization.
discriminator: Field name for discriminating the type in a tagged union.
json_schema_extra: Dictionary of extra JSON schema properties.
frozen: Whether the field is frozen.
Expand Down Expand Up @@ -716,7 +716,7 @@ def Field( # noqa: C901
title: Human-readable title.
description: Human-readable description.
examples: Example values for this field.
exclude: Whether to exclude the field from the model schema.
exclude: Whether to exclude the field from the model serialization.
discriminator: Field name for discriminating the type in a tagged union.
json_schema_extra: Any additional JSON schema data for the schema property.
frozen: Whether the field is frozen.
Expand Down

0 comments on commit 69357e1

Please sign in to comment.