from api.application.contracts.company.company_request import CreateNewCompany from api.application.contracts.company.company_response import CompanyBaseResponse from api.domain.company.repository import CompanyRepository class CreateCompany: def __init__(self, company_repository: CompanyRepository) -> None: self.company_repository = company_repository async def execute(self, request: CreateNewCompany) -> CompanyBaseResponse: # companies = await self.company_repository. return CompanyBaseResponse(name=request.name, email=request.email)