From 63f4a1e4e4da8f24547a2116e8534500c6eaa427 Mon Sep 17 00:00:00 2001 From: PrettyWood Date: Tue, 12 Jan 2021 18:28:32 +0100 Subject: [PATCH] chore: update message to be more accurate --- pydantic/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydantic/validators.py b/pydantic/validators.py index a531d041b2..a8303f8401 100644 --- a/pydantic/validators.py +++ b/pydantic/validators.py @@ -584,8 +584,8 @@ def make_typed_dict_validator(type_: Type['TypedDict']) -> Callable[[Any], Dict[ warnings.warn( 'You should use `typing_extensions.TypedDict` instead of `typing.TypedDict` for better support! ' - 'Without it, there is no way to differentiate required and optional fields. ' - 'All fields will therefore be considered required.', + 'Without it, there is no way to differentiate required and optional fields when subclassed. ' + 'Fields will therefore be considered all required or all optional depending on class totality.', UserWarning, ) default_value = ... if type_.__total__ else None