MCPcopy Create free account
hub / github.com/MrNothing/AI-Blocks / _aiblocks_parseVal

Function _aiblocks_parseVal

Sources/build_scripts/scripts_init.py:45–53  ·  view source on GitHub ↗
(self, val, type)

Source from the content-addressed store, hash-verified

43
44
45 def _aiblocks_parseVal(self, val, type):
46 if(type=="int"):
47 return int(val)
48 elif(type=="float"):
49 return float(val)
50 elif(type=="array"):
51 return eval(val)
52 else:
53 return val
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected