docs: restore FailureResponse public-method docstrings stripped in de-bloat
Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
@@ -11,18 +11,18 @@ and swap the HTTP client while inheriting everything else.
|
||||
`requirements.txt`:
|
||||
|
||||
```
|
||||
aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.11
|
||||
aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.12
|
||||
```
|
||||
|
||||
Direct:
|
||||
|
||||
```bash
|
||||
pip install "aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.11"
|
||||
pip install "aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.12"
|
||||
```
|
||||
|
||||
Requires `aiohttp` and `yarl` (pulled transitively).
|
||||
|
||||
Drop the `@v0.1.11` suffix from the line above to install the latest unpinned.
|
||||
Drop the `@v0.1.12` suffix from the line above to install the latest unpinned.
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -149,6 +149,13 @@ Two changes can't be shimmed without re-introducing the bugs they fix:
|
||||
|
||||
## Changelog
|
||||
|
||||
### v0.1.12
|
||||
|
||||
- **Docstring-only.** Restored one-line docstrings on `FailureResponse`'s
|
||||
`redirect_chain`, `text()`, `json()`, and `raise_for_status()` — a prior
|
||||
de-bloat pass stripped them below the public tier while the `Response`
|
||||
twins kept theirs. No behavior change.
|
||||
|
||||
### v0.1.11
|
||||
|
||||
- **`preview()` no longer requires a running event loop.** Its default cookie
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "aioweb"
|
||||
version = "0.1.11"
|
||||
version = "0.1.12"
|
||||
description = "Async HTTP session wrapper over aiohttp — proxies, header overwrites, retries, previews. Config-free, installable."
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
@@ -133,6 +133,7 @@ class FailureResponse:
|
||||
|
||||
@property
|
||||
def redirect_chain(self):
|
||||
"""list of (status, url) tuples for all redirects"""
|
||||
return []
|
||||
|
||||
@property
|
||||
@@ -148,12 +149,15 @@ class FailureResponse:
|
||||
return None
|
||||
|
||||
def text(self, encoding=None):
|
||||
"""always None"""
|
||||
return None
|
||||
|
||||
def json(self):
|
||||
"""always None"""
|
||||
return None
|
||||
|
||||
def raise_for_status(self):
|
||||
"""raise AiowebError(reason)"""
|
||||
raise AiowebError(self._reason)
|
||||
|
||||
def __bool__(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user