Skip to content

email.mime.application.MIMEApplication expects bytes instead of Union[str, bytes] #2831

@jolaf

Description

@jolaf

Current annotation for email.mime.application.MIMEApplication constructor expects first argument to be bytes, while it should be Union[str, bytes], as both are accepted and work fine, and moreover, the internal engine of email.message.Message.set_payload() actually transforms bytes to str.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions