MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _coerce_float

Function _coerce_float

agents/must-read-manager/main.py:126–130  ·  view source on GitHub ↗
(value: Any, default: float = 0.0)

Source from the content-addressed store, hash-verified

124
125
126def _coerce_float(value: Any, default: float = 0.0) -> float:
127 try:
128 return float(value)
129 except (TypeError, ValueError):
130 return default
131
132
133def _resolve_broad_must_read_keyword(value: str) -> Optional[str]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected