From 980131abf97390551785ee64b65c445b359ad240 Mon Sep 17 00:00:00 2001 From: Luke Tonin <26802758+LukeTonin@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:23:22 +0000 Subject: [PATCH] Update strict docstring in model_validate method. --- pydantic/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydantic/main.py b/pydantic/main.py index 71bcd578c8..b0377afb4d 100644 --- a/pydantic/main.py +++ b/pydantic/main.py @@ -488,7 +488,7 @@ def model_validate( Args: obj: The object to validate. - strict: Whether to raise an exception on invalid fields. + strict: Whether to enforce types strictly. from_attributes: Whether to extract data from object attributes. context: Additional context to pass to the validator.