Fix email.parser.BytesParser and BytesHeaderParser method args (#2548)

Fixes #2502
This commit is contained in:
Jerome Leclanche
2018-10-24 16:22:08 +03:00
committed by Jelle Zijlstra
parent 680d69bd81
commit f362cf47fa

View File

@@ -2,8 +2,8 @@
import email.feedparser
from email.message import Message
from typing import Callable, Optional, TextIO, BinaryIO
from email.policy import Policy
from typing import BinaryIO, Callable, Optional, TextIO
FeedParser = email.feedparser.FeedParser
BytesFeedParser = email.feedparser.BytesFeedParser
@@ -24,10 +24,10 @@ class BytesHeaderParser(BytesParser):
def __init__(self, _class: Callable[[], Message] = ..., *,
policy: Policy = ...) -> None: ...
def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...
def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...
def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...
class BytesParser:
def __init__(self, _class: Callable[[], Message] = ..., *,
policy: Policy = ...) -> None: ...
def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...
def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...
def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...