(config: dict, key: str, default: float,
*, minimum: float = 0.1)
| 268 | |
| 269 | @staticmethod |
| 270 | def _cfg_float(config: dict, key: str, default: float, |
| 271 | *, minimum: float = 0.1) -> float: |
| 272 | try: |
| 273 | value = float(config.get(key, default)) |
| 274 | except (TypeError, ValueError): |
| 275 | value = default |
| 276 | return max(minimum, value) |
| 277 | |
| 278 | @classmethod |
| 279 | def _normalize_download_extensions(cls, raw) -> tuple[tuple[str, ...], bool]: |