14 lines
279 B
Python
14 lines
279 B
Python
from typing import Protocol
|
|
|
|
from src.repository.users import UsersRepo
|
|
|
|
|
|
class IUOWDB(Protocol):
|
|
user: UsersRepo
|
|
|
|
async def __aenter__(self) -> "IUOWDB": ...
|
|
|
|
async def __aexit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
|
|
|
async def commit(self) -> None: ...
|