Skip to content

Commit

Permalink
Add some missing type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
irgeek committed Jun 29, 2023
1 parent 06d6289 commit f7b6a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions strenum/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import enum
from typing import Union
from typing import Union, Sequence, Mapping, Any

class StrEnum(str, enum.Enum):
def __new__(cls, value: Union[str, enum.auto], *args, **kwargs): ...
def __new__(cls, value: Union[str, enum.auto], *args: Sequence[Any], **kwargs: Mapping[Any, Any]) -> StrEnum: ...
def __str__(self) -> str: ...
def _generate_next_value_(name: str, *_) -> str: ...

Expand Down
2 changes: 1 addition & 1 deletion strenum/mixins.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Tuple
from typing import Tuple, Any

class Comparable:
def __eq__(self, other: Any) -> bool: ...
Expand Down

0 comments on commit f7b6a78

Please sign in to comment.