diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-27 13:18:01 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:43 -0400 |
| commit | 63b3a0838334e6eb728d0e3c8250265e58c4cf4c (patch) | |
| tree | 7c1ef1850391906c96674b83a708448c5d4cee3b /python/function.py | |
| parent | bff5a6e38c945833ddb22c379d57f556244a2e25 (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/function.py')
| -rw-r--r-- | python/function.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/function.py b/python/function.py index bc7901c6..5a620095 100644 --- a/python/function.py +++ b/python/function.py @@ -138,7 +138,7 @@ class ILReferenceSource: self._expr_id = expr_id @staticmethod - def get_il_name(il_type): + def get_il_name(il_type:FunctionGraphType) -> str: if il_type == FunctionGraphType.NormalFunctionGraph: return 'disassembly' if il_type == FunctionGraphType.LowLevelILFunctionGraph: @@ -1428,7 +1428,7 @@ class Function: core.BNRemoveUserTypeFieldReference(self.handle, from_arch.handle, from_addr, _name,\ offset, size) - def get_low_level_il_at(self, addr:int, arch:Optional['architecture.Architecture']=None): + def get_low_level_il_at(self, addr:int, arch:Optional['architecture.Architecture']=None) -> Optional['lowlevelil.LowLevelILInstruction']: """ ``get_low_level_il_at`` gets the LowLevelILInstruction corresponding to the given virtual address @@ -1542,7 +1542,7 @@ class Function: return result @property - def auto_address_tags(self): + def auto_address_tags(self) -> List['binaryview.Tag']: """ ``auto_address_tags`` gets a list of all auto-defined address Tags in the function. Tags are returned as a list of (arch, address, Tag) tuples. |
