From 1547764313926835982782703638433118318764 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 10 Jun 2025 18:39:47 -0400 Subject: Fix doc and typing on ILFunction.append --- python/lowlevelil.py | 4 ++-- python/mediumlevelil.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 6cd87227..76259057 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -4177,12 +4177,12 @@ class LowLevelILFunction: result |= flag.value core.BNSetLowLevelILExprAttributes(self.handle, expr, result) - def append(self, expr: ExpressionIndex) -> int: + def append(self, expr: ExpressionIndex) -> InstructionIndex: """ ``append`` adds the ExpressionIndex ``expr`` to the current LowLevelILFunction. :param ExpressionIndex expr: the ExpressionIndex to add to the current LowLevelILFunction - :return: number of ExpressionIndex in the current function + :return: Index of added instruction in the current function :rtype: int """ return core.BNLowLevelILAddInstruction(self.handle, expr) diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 1026df7d..581d72ea 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -3613,12 +3613,12 @@ class MediumLevelILFunction: result |= flag.value core.BNSetMediumLevelILExprAttributes(self.handle, expr, result) - def append(self, expr: ExpressionIndex) -> int: + def append(self, expr: ExpressionIndex) -> InstructionIndex: """ ``append`` adds the ExpressionIndex ``expr`` to the current MediumLevelILFunction. :param ExpressionIndex expr: the ExpressionIndex to add to the current MediumLevelILFunction - :return: number of ExpressionIndex in the current function + :return: Index of added instruction in the current function :rtype: int """ return core.BNMediumLevelILAddInstruction(self.handle, expr) -- cgit v1.3.1