From 764063b2b44dbeba5f2f318c971e4f4acfb48427 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 7 Jul 2021 08:26:29 -0400 Subject: Refactor Python Types Remove _mutable types --- python/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/variable.py') diff --git a/python/variable.py b/python/variable.py index fc2eb54a..1ed38c2d 100644 --- a/python/variable.py +++ b/python/variable.py @@ -724,7 +724,7 @@ class Variable: def type(self) -> 'binaryninja.types.Type': var_type_conf = core.BNGetVariableType(self._function.handle, self._var.to_BNVariable()) assert var_type_conf.type is not None, "core.BNGetVariableType returned None" - _type = binaryninja.types.Type(var_type_conf.type, self._function.platform, var_type_conf.confidence) + _type = binaryninja.types.Type.create(core.BNNewTypeReference(var_type_conf.type), self._function.platform, var_type_conf.confidence) return _type @type.setter -- cgit v1.3.1