Skip to content

Commit ece7511

Browse files
tbodtbdash
authored andcommitted
[Python] Use IL-specific types in return type annotations for get_basic_block_at
1 parent 4fccb2c commit ece7511

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/highlevelil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2647,7 +2647,7 @@ def _instantiate_block(self, handle):
26472647
def basic_blocks(self) -> 'function.HighLevelILBasicBlockList':
26482648
return function.HighLevelILBasicBlockList(self)
26492649

2650-
def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']:
2650+
def get_basic_block_at(self, index: int) -> Optional['HighLevelILBasicBlock']:
26512651
"""
26522652
``get_basic_block_at`` returns the BasicBlock at the given HLIL instruction ``index``.
26532653

python/lowlevelil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3410,7 +3410,7 @@ def _instantiate_block(self, handle):
34103410
def basic_blocks(self) -> 'function.LowLevelILBasicBlockList':
34113411
return function.LowLevelILBasicBlockList(self)
34123412

3413-
def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']:
3413+
def get_basic_block_at(self, index: int) -> Optional['LowLevelILBasicBlock']:
34143414
"""
34153415
``get_basic_block_at`` returns the BasicBlock at the given LLIL instruction ``index``.
34163416

python/mediumlevelil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,7 @@ def _instantiate_block(self, handle):
34293429
def basic_blocks(self) -> 'function.MediumLevelILBasicBlockList':
34303430
return function.MediumLevelILBasicBlockList(self)
34313431

3432-
def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']:
3432+
def get_basic_block_at(self, index: int) -> Optional['MediumLevelILBasicBlock']:
34333433
"""
34343434
``get_basic_block_at`` returns the BasicBlock at the given MLIL instruction ``index``.
34353435

0 commit comments

Comments
 (0)