Apply the code reviewer suggestion of abstractmethod
This commit is contained in:
parent
35ef8b7c13
commit
ac18b9c424
@ -76,7 +76,7 @@ class UserRepository(ABC):
|
|||||||
a hard failure (not a no-op) so callers cannot mistake a
|
a hard failure (not a no-op) so callers cannot mistake a
|
||||||
concurrent-delete race for a successful update.
|
concurrent-delete race for a successful update.
|
||||||
"""
|
"""
|
||||||
...
|
raise NotImplementedError
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def count_users(self) -> int:
|
async def count_users(self) -> int:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user