MCPcopy Index your code
hub / github.com/pyscript/pyscript / _transform

Function _transform

core/src/stdlib/pyscript/flatted.py:115–128  ·  view source on GitHub ↗
(known, input, value)

Source from the content-addressed store, hash-verified

113
114
115def _transform(known, input, value):
116 if _is_array(value):
117 output = []
118 for val in value:
119 output.append(_relate(known, input, val))
120 return output
121
122 if _is_object(value):
123 obj = {}
124 for key in value:
125 obj[key] = _relate(known, input, value[key])
126 return obj
127
128 return value
129
130
131def _wrap(value):

Callers 1

stringifyFunction · 0.85

Calls 4

_is_arrayFunction · 0.85
_relateFunction · 0.85
_is_objectFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected