def _compute_max_name_width(contracts: dict) -> int:
    """Return the maximum width needed by the function name column."""
    return max(
        len(function) for contract, functions in contracts.items() for function in functions
    )