Skip to content

Commit

Permalink
[BUG FIXING]
Browse files Browse the repository at this point in the history
- Correcting str(DossierState) wrong value
(0.0.9)
  • Loading branch information
Z3ZEL committed Jul 25, 2023
1 parent 90a3765 commit 2d39d0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0","requests"]
build-backend = "setuptools.build_meta"
[project]
name = "demarches-simpy"
version = "0.0.8"
version = "0.0.9"
authors = [
{ name="Esteban Rodriguez (Z3ZEL)", email="contact@rodriguez-esteban.com" },
]
Expand Down
4 changes: 4 additions & 0 deletions src/demarches_simpy/dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def __eq__(self, __o: object) -> bool:
return self.value == __o
else:
return super().__eq__(__o)

def __str__(self) -> str:
return self.value

@staticmethod
def from_str(str : str) -> 'DossierState':
for state in DossierState:
Expand Down

0 comments on commit 2d39d0f

Please sign in to comment.