🐛 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:
parent
440298861c
commit
846a15f9fd
1 changed files with 4 additions and 0 deletions
|
|
@ -216,6 +216,10 @@ class Vertex:
|
||||||
}
|
}
|
||||||
elif isinstance(_value, dict):
|
elif isinstance(_value, dict):
|
||||||
params[key] = _value
|
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:
|
else:
|
||||||
params[key] = value.get("value")
|
params[key] = value.get("value")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue