summaryrefslogtreecommitdiff
path: root/python/lineardisassembly.py
diff options
context:
space:
mode:
authorJosh F <josh@vector35.com>2022-04-22 19:12:23 -0400
committerJosh F <josh@vector35.com>2022-04-22 19:12:23 -0400
commit7051f9fecd395ddae07ee3b49785b1895e8206e1 (patch)
treec0131373e6316fc41a02b6ccd415cf1690958a14 /python/lineardisassembly.py
parentf31869ba3d53a542682cb52cf6af5ac111a79988 (diff)
Fix type annotation for single_function_language_representation
Diffstat (limited to 'python/lineardisassembly.py')
-rw-r--r--python/lineardisassembly.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py
index ddc8fd5d..9ec6619d 100644
--- a/python/lineardisassembly.py
+++ b/python/lineardisassembly.py
@@ -453,12 +453,12 @@ class LinearViewObject:
@staticmethod
def single_function_language_representation(
- view: 'binaryview.BinaryView', settings: Optional['_function.DisassemblySettings'] = None
+ func: '_function.Function', settings: Optional['_function.DisassemblySettings'] = None
) -> 'LinearViewObject':
_settings = settings
if _settings is not None:
_settings = _settings.handle
- return LinearViewObject(core.BNCreateLinearViewSingleFunctionLanguageRepresentation(view.handle, _settings))
+ return LinearViewObject(core.BNCreateLinearViewSingleFunctionLanguageRepresentation(func.handle, _settings))
class LinearViewCursor: