From ece75114e87b6ad80bc21f1825ac96293272951f Mon Sep 17 00:00:00 2001 From: tbodt Date: Tue, 9 Sep 2025 08:20:44 -0700 Subject: [Python] Use IL-specific types in return type annotations for get_basic_block_at --- python/highlevelil.py | 2 +- python/lowlevelil.py | 2 +- python/mediumlevelil.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/highlevelil.py b/python/highlevelil.py index 8869fedd..ce264e19 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -2647,7 +2647,7 @@ class HighLevelILFunction: def basic_blocks(self) -> 'function.HighLevelILBasicBlockList': return function.HighLevelILBasicBlockList(self) - def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']: + def get_basic_block_at(self, index: int) -> Optional['HighLevelILBasicBlock']: """ ``get_basic_block_at`` returns the BasicBlock at the given HLIL instruction ``index``. diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 7e941885..34deaaf1 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -3410,7 +3410,7 @@ class LowLevelILFunction: def basic_blocks(self) -> 'function.LowLevelILBasicBlockList': return function.LowLevelILBasicBlockList(self) - def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']: + def get_basic_block_at(self, index: int) -> Optional['LowLevelILBasicBlock']: """ ``get_basic_block_at`` returns the BasicBlock at the given LLIL instruction ``index``. diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 18e0f718..e710d5c2 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -3429,7 +3429,7 @@ class MediumLevelILFunction: def basic_blocks(self) -> 'function.MediumLevelILBasicBlockList': return function.MediumLevelILBasicBlockList(self) - def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']: + def get_basic_block_at(self, index: int) -> Optional['MediumLevelILBasicBlock']: """ ``get_basic_block_at`` returns the BasicBlock at the given MLIL instruction ``index``. -- cgit v1.3.1