docs: restore FailureResponse public-method docstrings stripped in de-bloat

Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
2026-07-03 16:46:03 -04:00
parent 7f73f21c93
commit 397d74efe3
3 changed files with 15 additions and 4 deletions
+10 -3
View File
@@ -11,18 +11,18 @@ and swap the HTTP client while inheriting everything else.
`requirements.txt`: `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: Direct:
```bash ```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). 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 ## Usage
@@ -149,6 +149,13 @@ Two changes can't be shimmed without re-introducing the bugs they fix:
## Changelog ## 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 ### v0.1.11
- **`preview()` no longer requires a running event loop.** Its default cookie - **`preview()` no longer requires a running event loop.** Its default cookie
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "aioweb" 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." description = "Async HTTP session wrapper over aiohttp — proxies, header overwrites, retries, previews. Config-free, installable."
requires-python = ">=3.10" requires-python = ">=3.10"
dependencies = [ dependencies = [
+4
View File
@@ -133,6 +133,7 @@ class FailureResponse:
@property @property
def redirect_chain(self): def redirect_chain(self):
"""list of (status, url) tuples for all redirects"""
return [] return []
@property @property
@@ -148,12 +149,15 @@ class FailureResponse:
return None return None
def text(self, encoding=None): def text(self, encoding=None):
"""always None"""
return None return None
def json(self): def json(self):
"""always None"""
return None return None
def raise_for_status(self): def raise_for_status(self):
"""raise AiowebError(reason)"""
raise AiowebError(self._reason) raise AiowebError(self._reason)
def __bool__(self) -> bool: def __bool__(self) -> bool: