Skip to content

Commit 47592dc

Browse files
committed
Improve typing
1 parent f43f05f commit 47592dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fortnite_api/enums.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ def __gt__(self, other: object) -> bool:
8787
return EnumValue
8888

8989

90-
def _is_descriptor(obj: type[object]):
90+
def _is_descriptor(obj: type[object]) -> bool:
9191
return hasattr(obj, '__get__') or hasattr(obj, '__set__') or hasattr(obj, '__delete__')
9292

9393

9494
class EnumMeta(type):
9595
if TYPE_CHECKING:
9696
_enum_member_names_: ClassVar[list[str]]
97-
_enum_member_map_: ClassVar[dict[str, Any]]
98-
_enum_value_map_: ClassVar[dict[Any, Any]]
97+
_enum_member_map_: ClassVar[dict[str, NewValue]]
98+
_enum_value_map_: ClassVar[dict[OldValue, NewValue]]
9999

100100
def __new__(
101101
cls,

0 commit comments

Comments
 (0)