Remove list endpoint and related methods

This commit is contained in:
François Voron
2020-04-25 11:46:20 +02:00
parent f37e4b90df
commit a9ee467518
13 changed files with 5 additions and 134 deletions

View File

@ -1,4 +1,4 @@
from typing import Generic, List, Optional, Type
from typing import Generic, Optional, Type
from fastapi.security import OAuth2PasswordRequestForm
@ -18,10 +18,6 @@ class BaseUserDatabase(Generic[UD]):
def __init__(self, user_db_model: Type[UD]):
self.user_db_model = user_db_model
async def list(self) -> List[UD]:
"""List all users."""
raise NotImplementedError()
async def get(self, id: str) -> Optional[UD]:
"""Get a single user by id."""
raise NotImplementedError()