(value: Any)
| 413 | |
| 414 | |
| 415 | def as_bool(value: Any) -> bool: |
| 416 | if isinstance(value, bool): |
| 417 | return value |
| 418 | if isinstance(value, str): |
| 419 | return value.strip().lower() in {'true', '1', 'yes'} |
| 420 | if isinstance(value, (int, float)): |
| 421 | return bool(value) |
| 422 | return False |
| 423 | |
| 424 | |
| 425 | def normalize_string_list(value: Any) -> list[str]: |