e = override


class SMTPSettingsFrom:
    def __init__(self, name: str, email: str) -&gt; None:
        self.name = name
        self.email = email


class SMTPSettings:
    def __init__(
        self,
        host: str,
        port: int,
        from_: SMTPSettingsFrom,
        password: Union[str, None] = None,
        secure: Union[bool, None] = None,
        username: Union[str, None] = None,
    ) -&gt; None:
        self.host = host
        self.from_ = from_
        self.password = password
       