From a90cbb9ff5195b8ccc354610c17d892e84024fe5 Mon Sep 17 00:00:00 2001 From: Galen Williamson Date: Mon, 5 May 2025 13:06:07 -0400 Subject: Fix order of constructor arguments in VariableNameAndType.from_identifier and .from_core_variable --- python/variable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/variable.py') diff --git a/python/variable.py b/python/variable.py index 2c57bac9..e8e55d90 100644 --- a/python/variable.py +++ b/python/variable.py @@ -713,11 +713,11 @@ class VariableNameAndType(CoreVariable): @classmethod def from_identifier(cls, identifier, name, type): var = core.BNFromVariableIdentifier(identifier) - return cls(name, type, var.type, var.index, var.storage) + return cls(var.type, var.index, var.storage, name, type) @classmethod def from_core_variable(cls, var, name, type): - return cls(name, type, var.type, var.index, var.storage) + return cls(var.type, var.index, var.storage, name, type) class Variable(CoreVariable): -- cgit v1.3.1