Skip to content

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

Closed

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.

Activity

  1. jolaf commented on Mar 7, 2019

    @jolaf
    ContributorAuthor

    The same goes for MIMEImage and MIMEAudio.

  2. added a commit that references this issue on Mar 11, 2019
    34cc554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions