Pydantic · Type Alias
NameEmail
NameEmail validates a display name and email address. It returns an object with separate name and email properties, and infers the name when the input has no display name.
Last updated
Syntax
class User(BaseModel):
email: NameEmailIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
EmailStrvalidate_email