From 52864e513ae8d98e46f1d54842c5d2420cbcca3a Mon Sep 17 00:00:00 2001 From: disqualifier Date: Fri, 3 Jul 2026 16:47:33 -0400 Subject: [PATCH] docs: add missing __aenter__/__aexit__ docstrings Signed-off-by: disqualifier --- README.md | 6 +++--- pyproject.toml | 2 +- src/redis_store/__init__.py | 2 +- src/redis_store/redis_store.py | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a884175..33328b8 100644 --- a/README.md +++ b/README.md @@ -14,19 +14,19 @@ datastore trio (`redis` / `psql` / `mysql`), a sibling of the `mongo` lib. `requirements.txt`: ``` -redis_store @ git+ssh://git@git.rethinkstudios.io/rethink-public/redis.git@v0.2.0 +redis_store @ git+ssh://git@git.rethinkstudios.io/rethink-public/redis.git@v0.2.1 ``` Direct: ```bash -pip install "redis_store @ git+ssh://git@git.rethinkstudios.io/rethink-public/redis.git@v0.2.0" +pip install "redis_store @ git+ssh://git@git.rethinkstudios.io/rethink-public/redis.git@v0.2.1" ``` Pulls `redis>=5.0.1` (redis-py, which ships the asyncio client — **not** the dead standalone `aioredis`; `5.0.1` is the floor because `5.0.0` lacks the async client's `aclose()`). -Drop the `@v0.2.0` suffix from the line above to install the latest unpinned. +Drop the `@v0.2.1` suffix from the line above to install the latest unpinned. ## Usage diff --git a/pyproject.toml b/pyproject.toml index cbf7415..7d1f19c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "redis_store" -version = "0.2.0" +version = "0.2.1" description = "async redis wrapper over redis-py asyncio with a raw escape hatch, fail-loud and config-free" requires-python = ">=3.10" dependencies = [ diff --git a/src/redis_store/__init__.py b/src/redis_store/__init__.py index f632167..e9e75f4 100644 --- a/src/redis_store/__init__.py +++ b/src/redis_store/__init__.py @@ -1,5 +1,5 @@ from .redis_store import RedisDB -__version__ = "0.2.0" +__version__ = "0.2.1" __all__ = ["RedisDB", "__version__"] diff --git a/src/redis_store/redis_store.py b/src/redis_store/redis_store.py index 3a0b502..fc9cd91 100644 --- a/src/redis_store/redis_store.py +++ b/src/redis_store/redis_store.py @@ -108,9 +108,11 @@ class RedisDB: raise async def __aenter__(self) -> "RedisDB": + """enter: connect() and return self""" return await self.connect() async def __aexit__(self, exc_type, exc, tb) -> None: + """exit: close(), ignoring exc_type/exc/tb""" await self.close() @property