summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-08-27 13:18:01 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:43 -0400
commit63b3a0838334e6eb728d0e3c8250265e58c4cf4c (patch)
tree7c1ef1850391906c96674b83a708448c5d4cee3b /python/highlevelil.py
parentbff5a6e38c945833ddb22c379d57f556244a2e25 (diff)
Add some additional typehints to architecture.py, function.py and metadata.py, callingconvention.py, binaryview.py, highlevelil.py, scriptingprovider.py, types.py
Fix typehint for Union[QualifiedName, str]
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 94b6dbfb..f19e6d77 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -90,25 +90,25 @@ class GotoLabel:
return self.name
@property
- def label_id(self):
+ def label_id(self) -> int:
return self.id
@property
- def name(self):
+ def name(self) -> str:
assert self.function.source_function is not None, "Cant get name of function without source_function"
return core.BNGetGotoLabelName(self.function.source_function.handle, self.id)
@name.setter
- def name(self, value):
+ def name(self, value:str) -> None:
assert self.function.source_function is not None, "Cant set name of function without source_function"
core.BNSetUserGotoLabelName(self.function.source_function.handle, self.id, value)
@property
- def definition(self) -> Optional['HighLevelILInstruction']:
+ def definition(self) -> Optional[HighLevelILInstruction]:
return self.function.get_label(self.id)
@property
- def uses(self):
+ def uses(self) -> List['HighLevelILInstruction']:
return self.function.get_label_uses(self.id)
@@ -400,7 +400,7 @@ class HighLevelILInstruction:
return self.core_instr.address
@property
- def source_operand(self):
+ def source_operand(self) -> int:
return self.core_instr.source_operand
@property
@@ -1357,7 +1357,7 @@ class HighLevelILArray_index(HighLevelILInstruction):
@property
def vars_used_in_address(self) -> VariablesList:
- return self.src.vars
+ return self.src
@dataclass(frozen=True, repr=False)
@@ -1381,7 +1381,7 @@ class HighLevelILArray_index_ssa(SSA, HighLevelILInstruction):
@property
def vars_used_in_address(self) -> VariablesList:
- return self.src.vars
+ return self.src
@property
def operands(self) -> List[HighLevelILOperandType]:
@@ -1412,7 +1412,7 @@ class HighLevelILSplit(HighLevelILInstruction):
class HighLevelILDeref(HighLevelILUnaryBase):
@property
- def vars_used_in_address(self):
+ def vars_used_in_address(self) -> VariablesList:
return self.vars
@@ -1436,7 +1436,7 @@ class HighLevelILDeref_field(HighLevelILInstruction):
return self.src.vars
@property
- def vars_used_in_address(self):
+ def vars_used_in_address(self) -> VariablesList:
return self.vars
@property
@@ -1460,7 +1460,7 @@ class HighLevelILDeref_ssa(SSA, HighLevelILInstruction):
return self.src.vars
@property
- def vars_used_in_address(self):
+ def vars_used_in_address(self) -> VariablesList:
return self.vars
@property
@@ -1492,7 +1492,7 @@ class HighLevelILDeref_field_ssa(SSA, HighLevelILInstruction):
return self.src.vars
@property
- def vars_used_in_address(self):
+ def vars_used_in_address(self) -> VariablesList:
return self.vars
@property