🐛 fix(base.py): convert "int" and "float" type values to their respective types for better data consistency and type safety

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-11 18:32:56 -03:00
commit 846a15f9fd

View file

@ -216,6 +216,10 @@ class Vertex:
}
elif isinstance(_value, dict):
params[key] = _value
elif value.get("type") == "int":
params[key] = int(value.get("value"))
elif value.get("type") == "float":
params[key] = float(value.get("value"))
else:
params[key] = value.get("value")