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

@@ -3,6 +3,8 @@ from email.message import Message
from email.policy import Policy
from typing import BinaryIO, Callable, TextIO, TypeVar
__all__ = ["Parser", "HeaderParser", "BytesParser", "BytesHeaderParser", "FeedParser", "BytesFeedParser"]
_M = TypeVar("_M", bound=Message)
FeedParser = email.feedparser.FeedParser[_M]