feat: явно указаны зависимости к Protocol для перехода к имплементации
This commit is contained in:
@@ -8,11 +8,12 @@ from tortoise.transactions import in_transaction
|
||||
|
||||
from shared.datebase_base import DatabaseBase
|
||||
from src import domain
|
||||
from usecase import Database
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Postgres(DatabaseBase):
|
||||
class Postgres(DatabaseBase, Database):
|
||||
def transaction(self) -> typing.AsyncContextManager[None]:
|
||||
return in_transaction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user