(value: Any)
| 19 | candidates.append(block) |
| 20 | |
| 21 | def to_bool(value: Any) -> bool: |
| 22 | if isinstance(value, bool): |
| 23 | return value |
| 24 | if isinstance(value, str): |
| 25 | lowered = value.strip().lower() |
| 26 | if lowered in {"true", "yes"}: |
| 27 | return True |
| 28 | if lowered in {"false", "no"}: |
| 29 | return False |
| 30 | if isinstance(value, (int, float)): |
| 31 | return bool(value) |
| 32 | return False |
| 33 | |
| 34 | for candidate in candidates: |
| 35 | if not candidate: |
no outgoing calls
no test coverage detected