MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / __init__

Method __init__

src/app/user/service/user_service.py:10–11  ·  view source on GitHub ↗
(self, user_repository: UserRepository)

Source from the content-addressed store, hash-verified

8
9class UserService:
10 def __init__(self, user_repository: UserRepository) -> None:
11 self.user_repository = user_repository
12
13 async def get_by_id(self, uid: int) -> User:
14 return await self.user_repository.get_by_id(uid=uid)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected