MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _parse_env_bool

Function _parse_env_bool

astrbot/dashboard/server.py:120–123  ·  view source on GitHub ↗
(value: str | None, default: bool)

Source from the content-addressed store, hash-verified

118
119
120def _parse_env_bool(value: str | None, default: bool) -> bool:
121 if value is None:
122 return default
123 return value.strip().lower() in {"1", "true", "yes", "on"}
124
125
126class _ProxyAwareHypercornLogger(HypercornLogger):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected