From 71993fea1b88a6f10a61f320019473d8bb7cf005 Mon Sep 17 00:00:00 2001 From: disqualifier Date: Mon, 6 Jul 2026 02:55:58 -0400 Subject: [PATCH] docs: add __aenter__/__aexit__ one-liner docstrings for twin parity with redis Signed-off-by: disqualifier --- src/psql/psql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/psql/psql.py b/src/psql/psql.py index b511572..fe02e76 100644 --- a/src/psql/psql.py +++ b/src/psql/psql.py @@ -164,9 +164,11 @@ class PsqlDB: self._pool = None async def __aenter__(self) -> "PsqlDB": + """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