Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Commit

Permalink
Added stub for http.client.parse_headers (python#4749)
Browse files Browse the repository at this point in the history
Co-authored-by: Vasily Zakharov <[email protected]>
  • Loading branch information
jolaf and Vasily Zakharov authored Nov 8, 2020
1 parent ee945af commit 0e4a92f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/3/http/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from typing import (
IO,
Any,
BinaryIO,
Callable,
Dict,
Iterable,
Iterator,
Expand Down Expand Up @@ -90,6 +91,8 @@ responses: Dict[int, str]

class HTTPMessage(email.message.Message): ...

def parse_headers(fp: io.BufferedIOBase, _class: Callable[[], email.message.Message] = ...) -> HTTPMessage: ...

class HTTPResponse(io.BufferedIOBase, BinaryIO):
msg: HTTPMessage
headers: HTTPMessage
Expand Down

0 comments on commit 0e4a92f

Please sign in to comment.