Skip to content

Commit

Permalink
Fix bad typization
Browse files Browse the repository at this point in the history
  • Loading branch information
MRossa157 committed Dec 4, 2024
1 parent 632a5c3 commit 7ddba33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/database.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from contextlib import asynccontextmanager
from typing import Any, AsyncGenerator
from typing import AsyncGenerator

from asyncpg import Pool, create_pool
from asyncpg.connection import Connection
Expand All @@ -24,7 +24,7 @@ def pool(self) -> Pool:
return self.__pool

@asynccontextmanager
async def lifespan(self) -> AsyncGenerator[None, Any, None]:
async def lifespan(self) -> AsyncGenerator[None, None]:
"""
Контекстный менеджер для управления временем жизни пула соединений.
Использовать только для инициализации и завершения работы приложения.
Expand Down

0 comments on commit 7ddba33

Please sign in to comment.