From 397d74efe31a1a214837a09432f712e8bfcf94da Mon Sep 17 00:00:00 2001 From: disqualifier Date: Fri, 3 Jul 2026 16:46:03 -0400 Subject: [PATCH] docs: restore FailureResponse public-method docstrings stripped in de-bloat Signed-off-by: disqualifier --- README.md | 13 ++++++++++--- pyproject.toml | 2 +- src/aioweb/responses.py | 4 ++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d3d518e..4672952 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 039d282..bf12df3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ diff --git a/src/aioweb/responses.py b/src/aioweb/responses.py index 33b3d9d..6f0d104 100644 --- a/src/aioweb/responses.py +++ b/src/aioweb/responses.py @@ -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: