MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / as_bool

Function as_bool

scripts/issue_good_first_issue_check_openhands.py:415–422  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

413
414
415def as_bool(value: Any) -> bool:
416 if isinstance(value, bool):
417 return value
418 if isinstance(value, str):
419 return value.strip().lower() in {'true', '1', 'yes'}
420 if isinstance(value, (int, float)):
421 return bool(value)
422 return False
423
424
425def normalize_string_list(value: Any) -> list[str]:

Callers 1

normalize_resultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected