MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / preprocess_func

Function preprocess_func

pywebio/input.py:262–266  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

260 item_spec['action'] = dict(label=label, callback_id=callback_id)
261
262 def preprocess_func(d): # Convert the original data submitted by the user
263 if value_setter is not None and value_setter.label == d:
264 return value_setter.value
265
266 return d
267
268 return single_input(item_spec, valid_func, preprocess_func, onchange_func)
269

Callers 1

check_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…