from typing import List
from injector import singleton, inject
from funicular.model.user import User
from funicular.repository.user import UserRepository


@singleton
class UserService:

    @inject
    def __init__(self, repository: UserRepository):
        super().__init__()
        self.__repository = repository

    def list(self) ->List[User]:
        return self.__repository.all()

22f8ebaac01f20b1f3a0b3c90f6ac72834c7e8e9
<mask token>


@singleton
class UserService:
    <mask token>
    <mask token>

<mask token>


@singleton
class UserService:
    <mask token>

    def list(self) ->List[User]:
        return self.__repository.all()

<mask token>


@singleton
class UserService:

    @inject
    def __init__(self, repository: UserRepository):
        super().__init__()
        self.__repository = repository

    def list(self) ->List[User]:
        return self.__repository.all()

from typing import List
from injector import singleton, inject
from funicular.model.user import User
from funicular.repository.user import UserRepository


@singleton
class UserService:

    @inject
    def __init__(self, repository: UserRepository):
        super().__init__()
        self.__repository = repository

    def list(self) ->List[User]:
        return self.__repository.all()
