Return True if *cfg* uses the new structured section format.
(cfg: dict)
| 173 | # ── Format detection ───────────────────────────────────────────────────── |
| 174 | |
| 175 | def is_structured(cfg: dict) -> bool: |
| 176 | """Return True if *cfg* uses the new structured section format.""" |
| 177 | return any( |
| 178 | key in _STRUCTURED_SECTIONS and isinstance(cfg.get(key), dict) |
| 179 | for key in cfg |
| 180 | ) |
| 181 | |
| 182 | |
| 183 | # ── Flatten ────────────────────────────────────────────────────────────── |
no test coverage detected