From f7b6a7874b848e82c917dc798ceeee8f4dd44cfb Mon Sep 17 00:00:00 2001 From: James Sinclair Date: Thu, 29 Jun 2023 23:31:26 +0200 Subject: [PATCH] Add some missing type annotations. --- strenum/__init__.pyi | 4 ++-- strenum/mixins.pyi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/strenum/__init__.pyi b/strenum/__init__.pyi index ac40d90..3ad1a91 100644 --- a/strenum/__init__.pyi +++ b/strenum/__init__.pyi @@ -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: ... diff --git a/strenum/mixins.pyi b/strenum/mixins.pyi index 579d3c9..0cfac77 100644 --- a/strenum/mixins.pyi +++ b/strenum/mixins.pyi @@ -1,4 +1,4 @@ -from typing import Tuple +from typing import Tuple, Any class Comparable: def __eq__(self, other: Any) -> bool: ...