Apply the code reviewer suggestion of abstractmethod
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user