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

1import typing 

2 

3 

4class UserDictProtocol(typing.Protocol): 

5 """Default storage protocol/interface.""" 

6 

7 def prepare(self: "UserDictProtocol", user_name: str) -> "UserDictProtocol": 

8 """Prepare class for user name.""" 

9 

10 async def save_record(self: "UserDictProtocol", exception_word: str) -> None: 

11 """Save record to user dictionary.""" 

12 

13 async def remove_record(self: "UserDictProtocol", exception_word: str) -> None: 

14 """Remove record from user dictionary.""" 

15 

16 async def fetch_records(self: "UserDictProtocol") -> list[str]: 

17 """Fetch records from user dictionary."""