Skip to content

Commit

Permalink
chore: update message to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Jan 12, 2021
1 parent 7368bf9 commit 63f4a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic/validators.py
Expand Up @@ -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
Expand Down

0 comments on commit 63f4a1e

Please sign in to comment.