Helper to parse manual sources
This helper will be used to parse worker version/worker runs arguments in worker configurations.
These parameters usually support manually created results and as such, need to support it.
Arkindex API filters usually support False
in that case.
MANUAL_SOURCE = "manual"
def _parse_source(value) -> bool | str | None:
if value == MANUAL_SOURCE:
return False
return value or None