MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / maybe_coerce_boolean

Function maybe_coerce_boolean

src/opencode_ai/_utils/_utils.py:341–344  ·  view source on GitHub ↗
(val: str | None)

Source from the content-addressed store, hash-verified

339
340
341def maybe_coerce_boolean(val: str | None) -> bool | None:
342 if val is None:
343 return None
344 return coerce_boolean(val)
345
346
347def removeprefix(string: str, prefix: str) -> str:

Callers

nothing calls this directly

Calls 1

coerce_booleanFunction · 0.85

Tested by

no test coverage detected