@staticmethod
    def _width_info(term_width, field_count):
        # remove padding and dividers for width available to actual content
        usable_total_width = max(0, term_width - 3 * field_count - 1)

        # calculate width per column if all columns were equal
        if field_count == 0:
            optimal_width = 0
        else:
            optimal_width = max(0, usable_total_width // field_count)

        return usable_total_width, optimal_width
dataset/ETHPy150Open openstack/cliff/cliff/formatters/table.py/TableFormatter._width_info/swapped operands of `-`