We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f43f05f commit 47592dcCopy full SHA for 47592dc
1 file changed
fortnite_api/enums.py
@@ -87,15 +87,15 @@ def __gt__(self, other: object) -> bool:
87
return EnumValue
88
89
90
-def _is_descriptor(obj: type[object]):
+def _is_descriptor(obj: type[object]) -> bool:
91
return hasattr(obj, '__get__') or hasattr(obj, '__set__') or hasattr(obj, '__delete__')
92
93
94
class EnumMeta(type):
95
if TYPE_CHECKING:
96
_enum_member_names_: ClassVar[list[str]]
97
- _enum_member_map_: ClassVar[dict[str, Any]]
98
- _enum_value_map_: ClassVar[dict[Any, Any]]
+ _enum_member_map_: ClassVar[dict[str, NewValue]]
+ _enum_value_map_: ClassVar[dict[OldValue, NewValue]]
99
100
def __new__(
101
cls,
0 commit comments