From ed4323df30a9079e99c8ef88bbf09417416da5fa Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Thu, 7 Feb 2019 07:21:57 -0800 Subject: [PATCH] Update models.pyi (#2780) Currently, iter_lines() doesn't have any type annotations despite the types being very similar to iter_content and the types can be pretty readily derived from the source. --- third_party/2and3/requests/models.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/requests/models.pyi b/third_party/2and3/requests/models.pyi index cdd8ab296..b4e74d0ef 100644 --- a/third_party/2and3/requests/models.pyi +++ b/third_party/2and3/requests/models.pyi @@ -127,7 +127,10 @@ class Response: def apparent_encoding(self) -> str: ... def iter_content(self, chunk_size: Optional[int] = ..., decode_unicode: bool = ...) -> Iterator[Any]: ... - def iter_lines(self, chunk_size=..., decode_unicode=..., delimiter=...): ... + def iter_lines(self, + chunk_size: Optional[int] = ..., + decode_unicode: bool = ..., + delimiter: Union[Text, bytes] = ...) -> Iterator[Any]: ... @property def content(self) -> bytes: ... @property