(spec)
| 752 | |
| 753 | |
| 754 | def 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 | |
| 765 | def input_update(name: str = None, **spec): |
no test coverage detected
searching dependent graphs…