From 259ef273531f53ee73fe53ea8b147fe59326a31b Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 11 Oct 2021 09:27:44 -0400 Subject: Revert 'mlils' back to list instead of Generator --- python/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index a43fe89d..6cefd682 100644 --- a/python/function.py +++ b/python/function.py @@ -65,7 +65,7 @@ ILFunctionType = Union['lowlevelil.LowLevelILFunction', 'mediumlevelil.MediumLev 'highlevelil.HighLevelILFunction'] ILInstructionType = Union['lowlevelil.LowLevelILInstruction', 'mediumlevelil.MediumLevelILInstruction', 'highlevelil.HighLevelILInstruction'] -StringOrType = Union[str, '_types.Type', '_types.TypeBuilder'] +StringOrType = Union[str, 'types.Type', 'types.TypeBuilder'] def _function_name_(): return inspect.stack()[1][0].f_code.co_name @@ -909,7 +909,7 @@ class Function: return types.Type.create(core.BNNewTypeReference(result.type), platform = self.platform, confidence = result.confidence) @return_type.setter - def return_type(self, value:StringOrType) -> None: + def return_type(self, value:StringOrType) -> None: # type: ignore type_conf = core.BNTypeWithConfidence() if value is None: type_conf.type = None -- cgit v1.3.1