Skip to content

Commit

Permalink
added docstring and removed uneccessary try, except #63
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGuarnaccia5 committed Sep 27, 2023
1 parent c5d09c0 commit 8dce87d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inventory_management_system_api/services/manufacturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def _generate_code(self, name: str) -> str:
return re.sub(r"\s", "-", name)

def list(self) -> List[ManufacturerOut]:
"""Get manufactuers"""

"""Get all manufactuers
:return: list of all manufacturers
"""
return self._manufacturer_repository.list()

0 comments on commit 8dce87d

Please sign in to comment.