From 8a209a729c2ee91e5295422c28e82125211078ef Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Thu, 31 Jul 2025 23:14:16 +0200 Subject: [PATCH] typing --- src/suou/sqlalchemy_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suou/sqlalchemy_async.py b/src/suou/sqlalchemy_async.py index 9ddd24f..461c67f 100644 --- a/src/suou/sqlalchemy_async.py +++ b/src/suou/sqlalchemy_async.py @@ -37,7 +37,7 @@ class SQLAlchemy: self.engine = None def bind(self, url: str): self.engine = create_async_engine(url) - async def begin(self): + async def begin(self) -> Session: if self.engine is None: raise RuntimeError('database is not connected') return await self.engine.begin()