From 60f49f32d989355696b1eb78aee98140f417952c Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 14 Feb 2023 00:05:20 -0500 Subject: Python API: Critical fix --- python/types.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/types.py') 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( -- cgit v1.3.1