(name: str, default: bool = False)
| 170 | } |
| 171 | """ |
| 172 | |
| 173 | |
| 174 | def _env_flag(name: str, default: bool = False) -> bool: |
| 175 | raw = os.environ.get(name) |
| 176 | if raw is None: |
| 177 | return default |
| 178 | return raw.strip().lower() not in {"0", "false", "off", "no", ""} |
| 179 |
no test coverage detected