mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 14:45:23 +08:00
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:
committed by
Jelle Zijlstra
parent
9ffa1d8237
commit
ed4323df30
5
third_party/2and3/requests/models.pyi
vendored
5
third_party/2and3/requests/models.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user