(data: Any, path: str)
| 215 | |
| 216 | |
| 217 | def require_mapping(data: Any, path: str) -> Mapping[str, Any]: |
| 218 | if not isinstance(data, Mapping): |
| 219 | raise ConfigError("expected mapping", path) |
| 220 | return data |
| 221 | |
| 222 | |
| 223 | def require_str(data: Mapping[str, Any], key: str, path: str, *, allow_empty: bool = False) -> str: |
no test coverage detected