Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -25,7 +25,7 @@ engine: AsyncEngine = create_async_engine(
|
||||
)
|
||||
|
||||
|
||||
async def get_db() -> AsyncGenerator[AsyncSession, None]:
|
||||
async def get_db() -> AsyncGenerator[AsyncSession]:
|
||||
"""Get a database session for dependency injection."""
|
||||
logger = get_logger(__name__)
|
||||
async with AsyncSession(engine) as session:
|
||||
|
||||
Reference in New Issue
Block a user