MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _parse_gen_bool

Function _parse_gen_bool

keepercommander/generator.py:246–253  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

244
245
246def _parse_gen_bool(value):
247 # type: (str) -> Optional[bool]
248 normalized = value.strip().lower()
249 if normalized in ('true', '1', 'yes', 'on'):
250 return True
251 if normalized in ('false', '0', 'no', 'off'):
252 return False
253 return None
254
255
256def _is_strict_gen_bool_token(value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected