Update djblets.mail for typing, enums, and deprecations.
Review Request #13154 — Created July 19, 2023 and submitted — Latest diff uploaded
This updates
EmailMessage
, DMARC code, and utilities to provide Python
type hints for all arguments and results, helping ensure consistency in
usage and behavior. This actually caught a couple of issues withNone
values being fed intoEmailMessage
at points.Positional arguments to
EmailMessage
and theenable_smart_spoofing
argument are deprecated, scheduled for removal in Djblets 6.This all prepares for some upcoming work on this module.
Unit tests pass in Djblets and Review Board.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
Commits
djblets/mail/dmarc.py |
---|
djblets/mail/message.py |
---|
djblets/mail/testing.py |
---|
djblets/mail/tests.py |
---|
djblets/mail/utils.py |
---|