summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py
index 76c8de0c..1c244ae4 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1960,8 +1960,8 @@ class Function(object):
settings_obj = None
return binaryninja.flowgraph.CoreFlowGraph(core.BNCreateFunctionGraph(self.handle, graph_type, settings_obj))
- def apply_imported_types(self, sym):
- core.BNApplyImportedTypes(self.handle, sym.handle)
+ def apply_imported_types(self, sym, type=None):
+ core.BNApplyImportedTypes(self.handle, sym.handle, None if type is None else type.handle)
def apply_auto_discovered_type(self, func_type):
core.BNApplyAutoDiscoveredFunctionType(self.handle, func_type.handle)