Conversation
Python 2 support was removed in #188, so the wheel should no longer be tagged as py2.py3-universal.
- pyupgrade: v2.4.3 → v3.21.2 (target py39+) - reorder-python-imports: v2.3.0 → v3.16.0 - black: 19.10b0 → 26.3.1 - flake8: 3.8.2 → 7.3.0 (moved URL from gitlab to github) - pre-commit-hooks: v3.1.0 → v6.0.0
Document all changes since v0.6, grouped by category: breaking changes, additions, fixes, and maintenance.
Add type annotations to the public API surface: - Message, html(), BaseMessage and all mixins - SMTPBackend, Response, SMTPResponse - DKIMSigner - BaseFile, LazyHTTPFile, MemoryFileStore - MessageID and utility functions Add py.typed marker for PEP 561 compliance.
Use typing.Optional instead of X | None syntax in the AddressPair type alias, since it's evaluated at runtime where PEP 604 union syntax requires Python 3.10+.
Python 3.9 reached EOL in October 2025. Requiring 3.10+ lets us use PEP 604 union syntax (X | Y) at runtime in type aliases. - Add python_requires='>=3.10' to setup.py - Remove 3.9 from CI matrix, tox envlist, and classifiers - Update pyupgrade target to --py310-plus - Revert Optional workaround in utils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Message,html(),send(),attach(),render(), backend responses,DKIMSigner, file store classes, and utility functionspy.typedmarker for PEP 561 complianceCloses #191
Test plan
as_string(), address parsing all work