Skip to content

[email] Various improvements - #16379

Open
srittau wants to merge 7 commits into
python:mainfrom
srittau:email-io
Open

[email] Various improvements#16379
srittau wants to merge 7 commits into
python:mainfrom
srittau:email-io

Conversation

@srittau

@srittau srittau commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator
  • Parametrize Message type returned from message_from_*(), when no class or policy is provided.
  • Use protocols instead of IO for message_from_(binary_)file.
  • Fix ambiguous overload of EmailPolicy.__init__.
  • Add defaults for EmailPolicy.__init__.
  • Replace instances of Any with Incomplete.

srittau and others added 4 commits September 10, 2026 11:58
* Parametrize `Message` type returned from `message_from_*()`, when no
  class or policy is provided.
* Use protocols instead of `IO` for `message_from_(binary_)file`.
* Fix ambiguous overload of `EmailPolicy.__init__`.
* Add defaults for `EmailPolicy.__init__`.
* Replace instances of `Any` with `Incomplete`.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant