MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / _clean

Function _clean

applications/mapcoder/workflows/controllers.py:21–25  ·  view source on GitHub ↗

Return `value` unless it's the framework's "(not set yet)" sentinel.

(value: Any, default: Any = "")

Source from the content-addressed store, hash-verified

19
20
21def _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
28def _bool_signal(value: Any) -> bool:

Callers 3

planfanout_terminateFunction · 0.70
debugloop_terminateFunction · 0.70
plan_iteration_terminateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected