Skip to content

Commit

Permalink
add functional_validators.py::model_validator docs with link to usage…
Browse files Browse the repository at this point in the history
… docs (#7976)

Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
  • Loading branch information
icfly2 and hramezani committed Oct 31, 2023
1 parent f4b0eaa commit cc21074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pydantic/functional_validators.py
Expand Up @@ -458,7 +458,9 @@ def model_validator(
*,
mode: Literal['wrap', 'before', 'after'],
) -> Any:
"""Decorate model methods for validation purposes.
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/validators/#model-validators
Decorate model methods for validation purposes.
Args:
mode: A required string literal that specifies the validation mode.
Expand Down

0 comments on commit cc21074

Please sign in to comment.