summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-10 18:39:47 -0400
committerGlenn Smith <glenn@vector35.com>2025-06-11 17:37:31 -0400
commit1547764313926835982782703638433118318764 (patch)
treef0af42b9d4c2102a2075796eaa2c18e15851c161 /python/mediumlevelil.py
parent7714756208488751236371949777023618888407 (diff)
Fix doc and typing on ILFunction.append
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py4
1 files changed, 2 insertions, 2 deletions
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)