Skip to content

email.parser.BytesParser error #2502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jleclanche opened this issue Oct 3, 2018 · 1 comment
Closed

email.parser.BytesParser error #2502

jleclanche opened this issue Oct 3, 2018 · 1 comment
Labels
stubs: false positive Type checkers report false errors

Comments

@jleclanche
Copy link
Contributor

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: ...

BytesParser should have a parsebytes method, not a parsestr method.

@srittau
Copy link
Collaborator

srittau commented Oct 21, 2018

Would you care to submit a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: false positive Type checkers report false errors
Projects
None yet
Development

No branches or pull requests

2 participants