forked from psf/requests
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
AsyncResponse.iter_lines()
(#182)
Doesn't work now. Causes an exception:`TypeError: 'async for' requires an object with __aiter__ method, got coroutine`. MRE: ```python import asyncio import niquests async def main() -> None: async with niquests.AsyncSession() as session: response: niquests.AsyncResponse = session.post(..., stream=True) async for line in response.iter_lines(): print(line) asyncio.run(main()) ``` --------- Co-authored-by: Ahmed TAHRI <[email protected]>
- Loading branch information
Showing
5 changed files
with
49 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
__url__: str = "https://niquests.readthedocs.io" | ||
|
||
__version__: str | ||
__version__ = "3.11.0" | ||
__version__ = "3.11.1" | ||
|
||
__build__: int = 0x031100 | ||
__build__: int = 0x031101 | ||
__author__: str = "Kenneth Reitz" | ||
__author_email__: str = "[email protected]" | ||
__license__: str = "Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters