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.
This commit is contained in:
Paul Dagnelie
2019-02-07 07:21:57 -08:00
committed by Jelle Zijlstra
parent 9ffa1d8237
commit ed4323df30

View File

@@ -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