Skip to content

Commit

Permalink
fix: __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Nov 21, 2024
1 parent 616e2af commit 86370bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stringenum/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __new__(cls, *values: str) -> Self:
return member

def __str__(self) -> str:
return str(self.value)
return self.value # type: ignore[no-any-return]

@staticmethod
def _generate_next_value_(name: str, start: int, count: int, last_values: list[str]) -> str:
Expand Down

0 comments on commit 86370bb

Please sign in to comment.