MCPcopy Create free account
hub / github.com/BeingBeyond/BeTTER / _validate_closed_range

Function _validate_closed_range

src/task/specs/task_draft.py:248–254  ·  view source on GitHub ↗
(name: str, values: tuple[float, float])

Source from the content-addressed store, hash-verified

246
247
248def _validate_closed_range(name: str, values: tuple[float, float]) -> None:
249 if len(values) != 2:
250 raise ValueError(f"{name} must contain exactly two values.")
251 low = float(values[0])
252 high = float(values[1])
253 if high < low:
254 raise ValueError(f"{name} must satisfy min <= max.")
255
256
257def _build_instance_id(*, semantic_name: str, occurrence: int, salt: str) -> str:

Callers 1

_validate_draftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected