summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-02-14 00:05:20 -0500
committerKyleMiles <krm504@nyu.edu>2023-02-14 00:15:56 -0500
commit60f49f32d989355696b1eb78aee98140f417952c (patch)
treeff20f817d7b54253ffa131a29bf6b59ff3b15ea0 /python
parent7a9450769c995154e6f6993b99e16254ed380206 (diff)
Python API: Critical fix
Diffstat (limited to 'python')
-rw-r--r--python/types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py
index c29f8d03..3be51744 100644
--- a/python/types.py
+++ b/python/types.py
@@ -2372,6 +2372,7 @@ class StructureType(Type):
def children(self) -> List[Type]:
return [member.type for member in self.members]
+
class EnumerationType(IntegerType):
def __init__(self, handle, platform: Optional['_platform.Platform'] = None, confidence: int = core.max_confidence):
assert handle is not None, "Attempted to create EnumerationType without handle"
@@ -2518,6 +2519,7 @@ class PointerType(Type):
def children(self) -> List[Type]:
return [self.target]
+
class ArrayType(Type):
@classmethod
def create(
@@ -2544,6 +2546,7 @@ class ArrayType(Type):
def children(self) -> List[Type]:
return [self.element_type]
+
class FunctionType(Type):
@classmethod
def create(