Skip to content

Commit de43219

Browse files
committed
Fix typing to make linter happy
1 parent 699df5e commit de43219

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

qiling/const.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
44
#
55

6-
from enum import EnumMeta, IntEnum
7-
from typing import Mapping, TypeVar
6+
from enum import Enum, IntEnum
7+
from typing import Any, Mapping, Type
88

99
class QL_ENDIAN(IntEnum):
1010
EL = 1
@@ -69,9 +69,7 @@ class QL_INTERCEPT(IntEnum):
6969
QL_HOOK_BLOCK = 0b0001
7070
QL_CALL_BLOCK = 0b0010
7171

72-
__QL_CE = TypeVar('__QL_CE', QL_DEBUGGER, QL_ARCH, QL_OS, QL_VERBOSE)
73-
74-
def __reverse_enum(e: EnumMeta) -> Mapping[str, __QL_CE]:
72+
def __reverse_enum(e: Type[Enum]) -> Mapping[str, Any]:
7573
'''Create a reverse mapping for an enum.
7674
'''
7775

0 commit comments

Comments
 (0)