(value)
| 244 | |
| 245 | |
| 246 | def _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 | |
| 256 | def _is_strict_gen_bool_token(value): |
nothing calls this directly
no outgoing calls
no test coverage detected