Commit Graph
12 Commits
Author SHA1 Message Date
Sebastian RittauandGitHub e224b28f32 Fix variance of a few email-related classes (#13952)
Closes #13919
2025-05-12 16:12:32 -07:00
Sebastian RittauandGitHub 0eb44e574c Clean up and fix email message types (#13532)
* Unify the `_MessageT` type var in `email._policybase`.
* Use explicit type arguments for `Message` type in `_MessageT` type var.
  In particular, change bound from `Message[str, str]` to `Message[Any, Any]`.
* Change `__init__()` overloads of `Parser` and `BytesParser` to accept
  `Message` objects that are not `Message[str, str]` if `_class` is not also given.
2025-05-05 11:59:51 -04:00
Brian SchubertandGitHub c27e41c33b Make various email.Policy use sites generic over the message type (#13274) 2025-02-23 20:28:43 +01:00
Jelle ZijlstraandGitHub ddfaca3200 stdlib: add argument default values (#9501) 2023-01-18 09:37:34 +01:00
Jelle ZijlstraandGitHub 7ab933f3c3 email: improve bytes handling (#9032) 2022-11-01 10:13:30 +01:00
Alex WaygoodandGitHub 8b3b6bf7cd stdlib: Audit Callable[<parameters>, None] annotations (#8187) 2022-06-27 08:08:28 +02:00
Alex WaygoodandGitHub 3c85f36b7f Reduce code duplication in the email module (#7558) 2022-04-06 12:20:14 +02:00
1acc8f3bd6 Use PEP 604 syntax wherever possible, part II (#7514)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-19 14:27:35 +00:00
Alex WaygoodandGitHub b74acc7546 Add all the email __all__s (#7304) 2022-02-19 17:53:29 -08:00
Alex WaygoodandGitHub 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
AkuliandGitHub ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00