diff --git a/backend/app/gateway/auth/providers.py b/backend/app/gateway/auth/providers.py index 25e782ce3..95571d5d0 100644 --- a/backend/app/gateway/auth/providers.py +++ b/backend/app/gateway/auth/providers.py @@ -12,12 +12,12 @@ class AuthProvider(ABC): Returns User if authentication succeeds, None otherwise. """ - ... + raise NotImplementedError @abstractmethod async def get_user(self, user_id: str) -> "User | None": """Retrieve user by ID.""" - ... + raise NotImplementedError # Import User at runtime to avoid circular imports diff --git a/backend/app/gateway/auth/repositories/base.py b/backend/app/gateway/auth/repositories/base.py index d96753171..49e61de40 100644 --- a/backend/app/gateway/auth/repositories/base.py +++ b/backend/app/gateway/auth/repositories/base.py @@ -35,7 +35,7 @@ class UserRepository(ABC): Raises: ValueError: If email already exists """ - ... + raise NotImplementedError @abstractmethod async def get_user_by_id(self, user_id: str) -> User | None: @@ -47,7 +47,7 @@ class UserRepository(ABC): Returns: User if found, None otherwise """ - ... + raise NotImplementedError @abstractmethod async def get_user_by_email(self, email: str) -> User | None: @@ -59,7 +59,7 @@ class UserRepository(ABC): Returns: User if found, None otherwise """ - ... + raise NotImplementedError @abstractmethod async def update_user(self, user: User) -> User: @@ -81,12 +81,12 @@ class UserRepository(ABC): @abstractmethod async def count_users(self) -> int: """Return total number of registered users.""" - ... + raise NotImplementedError @abstractmethod async def count_admin_users(self) -> int: """Return number of users with system_role == 'admin'.""" - ... + raise NotImplementedError @abstractmethod async def get_user_by_oauth(self, provider: str, oauth_id: str) -> User | None: @@ -99,4 +99,4 @@ class UserRepository(ABC): Returns: User if found, None otherwise """ - ... + raise NotImplementedError