Coverage for whole_app/dictionaries/protocol.py: 100%
6 statements
« prev ^ index » next coverage.py v7.10.4, created at 2025-08-21 23:45 +0000
« prev ^ index » next coverage.py v7.10.4, created at 2025-08-21 23:45 +0000
1import typing
4class UserDictProtocol(typing.Protocol):
5 """Default storage protocol/interface."""
7 def prepare(self: "UserDictProtocol", user_name: str) -> "UserDictProtocol":
8 """Prepare class for user name."""
10 async def save_record(self: "UserDictProtocol", exception_word: str) -> None:
11 """Save record to user dictionary."""
13 async def remove_record(self: "UserDictProtocol", exception_word: str) -> None:
14 """Remove record from user dictionary."""
16 async def fetch_records(self: "UserDictProtocol") -> list[str]:
17 """Fetch records from user dictionary."""