summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-01-10 15:13:57 -0500
committerJosh Ferrell <josh@vector35.com>2023-01-10 15:40:06 -0500
commitfc987b80da4d62e6b84b527aa96e1ddd388a6e8f (patch)
treea64c8998d881b5473efdac3b1e48dc9e4a54d4d4 /python/function.py
parent24cf4da00ae96949cecea910fbc1314eb722e58f (diff)
Fix some type errors in function.py
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/function.py b/python/function.py
index dcd07839..dba979cb 100644
--- a/python/function.py
+++ b/python/function.py
@@ -3269,7 +3269,7 @@ class Function:
core.BNFreeILReferences(refs, count.value)
return result
- def get_mlil_var_refs_from(self, addr: int, length: int = None,
+ def get_mlil_var_refs_from(self, addr: int, length: Optional[int] = None,
arch: Optional['architecture.Architecture'] = None) -> List[VariableReferenceSource]:
"""
``get_mlil_var_refs_from`` returns a list of variables referenced by code in the function ``func``,
@@ -3345,7 +3345,7 @@ class Function:
core.BNFreeILReferences(refs, count.value)
return result
- def get_hlil_var_refs_from(self, addr: int, length: int = None,
+ def get_hlil_var_refs_from(self, addr: int, length: Optional[int] = None,
arch: Optional['architecture.Architecture'] = None) -> List[VariableReferenceSource]:
"""
``get_hlil_var_refs_from`` returns a list of variables referenced by code in the function ``func``,
@@ -3735,7 +3735,7 @@ class DisassemblyTextRenderer:
def reset_deduplicated_comments(self) -> None:
core.BNResetDisassemblyTextRendererDeduplicatedComments(self.handle)
- def add_symbol_token(self, tokens: List['InstructionTextToken'], addr: int, size: int, operand: int = None) -> bool:
+ def add_symbol_token(self, tokens: List['InstructionTextToken'], addr: int, size: int, operand: Optional[int] = None) -> bool:
if operand is None:
operand = 0xffffffff
count = ctypes.c_ulonglong()