MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / get_form_list

Function get_form_list

main.py:95–101  ·  view source on GitHub ↗
(data: dict, key: str)

Source from the content-addressed store, hash-verified

93
94
95def get_form_list(data: dict, key: str) -> list[str]:
96 value = data.get(key, [])
97 if isinstance(value, list):
98 return [str(item) for item in value if str(item)]
99 if value:
100 return [str(value)]
101 return []
102
103
104def normalize_bool_field(data: dict, key: str, default: bool) -> bool:

Callers 2

parse_setup_optionsFunction · 0.85
build_setup_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected