importenumimportosfromtypingimportUnion__all__=("Default","SMTPStatus","SocketPathType","_default")SocketPathType=Union[str,bytes,os.PathLike[str]]classDefault(enum.Enum):""" Used for type hinting kwarg defaults. """token=0_default=Default.token
[docs]@enum.uniqueclassSMTPStatus(enum.IntEnum):""" Defines SMTP statuses for code readability. See also: http://www.greenend.org.uk/rjk/tech/smtpreplies.html """invalid_response=-1system_status_ok=211help_message=214ready=220closing=221auth_successful=235completed=250will_forward=251cannot_vrfy=252auth_continue=334start_input=354domain_unavailable=421mailbox_unavailable=450error_processing=451insufficient_storage=452tls_not_available=454unrecognized_command=500unrecognized_parameters=501command_not_implemented=502bad_command_sequence=503parameter_not_implemented=504domain_does_not_accept_mail=521access_denied=530# Sendmail specificauth_failed=535mailbox_does_not_exist=550user_not_local=551storage_exceeded=552mailbox_name_invalid=553transaction_failed=554syntax_error=555