Add all the email __all__s (#7304)

This commit is contained in:
Alex Waygood
2022-02-20 01:53:29 +00:00
committed by GitHub
parent e9db3bd50a
commit b74acc7546
21 changed files with 68 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ from email.policy import Policy
# using a type alias ("_HeaderType = Any") breaks mypy, who knows why
from typing import Any, Any as _HeaderType, Generator, Iterator, Optional, Sequence, TypeVar, Union
__all__ = ["Message", "EmailMessage"]
_T = TypeVar("_T")
_PayloadType = Union[list[Message], str, bytes]