(data: dict, key: str)
| 93 | |
| 94 | |
| 95 | def 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 | |
| 104 | def normalize_bool_field(data: dict, key: str, default: bool) -> bool: |
no outgoing calls
no test coverage detected