Return `value` unless it's the framework's "(not set yet)" sentinel.
(value: Any, default: Any = "")
| 19 | |
| 20 | |
| 21 | def _clean(value: Any, default: Any = "") -> Any: |
| 22 | """Return `value` unless it's the framework's "(not set yet)" sentinel.""" |
| 23 | if isinstance(value, str) and value.strip() == _PLACEHOLDER: |
| 24 | return default |
| 25 | return value |
| 26 | |
| 27 | |
| 28 | def _bool_signal(value: Any) -> bool: |
no outgoing calls
no test coverage detected