Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Dec 15, 2024
1 parent b942b3c commit ef81c00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/stringenum/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DuplicateFreeStrEnum(StrEnum):
raising a `ValueError` if duplicates are found.
"""

def __init__(self, *args: object) -> None:
def __init__(self, *args: str) -> None:
cls = self.__class__

for member in cls:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_case_insensitive_strenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_invalid_enum_value() -> None:
Color("invalid_color")

with pytest.raises(ValueError):
Color(None)
Color(None) # type: ignore[arg-type]


def test_invalid_enum_key() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_double_sided_case_insensitive_strenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_value_error_on_invalid_lookup() -> None:
Color("yellow")

with pytest.raises(ValueError):
Color(None)
Color(None) # type: ignore[arg-type]


def test_unique_on_each_side() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_double_sided_strenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_value_error_on_invalid_lookup() -> None:
Color("Red_color")

with pytest.raises(ValueError):
Color(None)
Color(None) # type: ignore[arg-type]


def test_unique_on_each_side() -> None:
Expand Down

0 comments on commit ef81c00

Please sign in to comment.