(name: str, default: bool = False)
| 357 | |
| 358 | |
| 359 | def _env_bool(name: str, default: bool = False) -> bool: |
| 360 | raw = os.environ.get(name) |
| 361 | if raw is None: |
| 362 | return default |
| 363 | return raw.strip().lower() in {"1", "true", "yes", "on"} |
| 364 | |
| 365 | |
| 366 | def _env_int(name: str, default: int, *, min_value: int = 1, max_value: int = 100000) -> int: |
no test coverage detected