Skip to content

Commit

Permalink
Fix a typo on Validators doc page (pydantic#9945)
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaBonfire authored Jul 23, 2024
1 parent 55eefbd commit 7cf8239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ except ValidationError as e:
Methods decorated with `@model_validator` should return the self instance at the end of the method.
For type checking purposes, you can use `Self` from either `typing` or the `typing_extensions` backport as the
return type of the decorated method.
In the context of the above example, you could also use `def check_passwords_match(self: 'UserModel)' -> 'UserModel'` to indicate that
In the context of the above example, you could also use `def check_passwords_match(self: 'UserModel') -> 'UserModel'` to indicate that
the method returns an instance of the model.

!!! note "On Inheritance"
Expand Down

0 comments on commit 7cf8239

Please sign in to comment.