Skip to content

_dict

Internal helper
This page documents an internal implementation helper, not a primary public API.

Return a dictionary or an empty default for optional config fragments.

Source code in src/fabricops_kit/quality.py
1608
1609
1610
def _dict(config: dict | None) -> dict:
    """Return a dictionary or an empty default for optional config fragments."""
    return config if isinstance(config, dict) else {}