Apply the code reviewer suggestion of abstractmethod

This commit is contained in:
Willem Jiang 2026-04-26 20:36:16 +08:00
parent 35ef8b7c13
commit ac18b9c424

View File

@ -76,7 +76,7 @@ class UserRepository(ABC):
a hard failure (not a no-op) so callers cannot mistake a
concurrent-delete race for a successful update.
"""
...
raise NotImplementedError
@abstractmethod
async def count_users(self) -> int: