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

Function parse_input_update_spec

pywebio/input.py:754–762  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

752
753
754def parse_input_update_spec(spec):
755 for key in spec:
756 assert key not in {'action', 'buttons', 'code', 'inline', 'max_size', 'max_total_size', 'multiple', 'name',
757 'onchange', 'type', 'validate'}, '%r can not be updated' % key
758
759 attributes = dict((k, v) for k, v in spec.items() if v is not None)
760 if 'options' in spec:
761 attributes['options'] = _parse_select_options(spec['options'])
762 return attributes
763
764
765def input_update(name: str = None, **spec):

Callers 2

pin_updateFunction · 0.90
input_updateFunction · 0.85

Calls 1

_parse_select_optionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…