@register_computer('float')
def compute_float(computer, name, value):
    if computer.specified.position in ('absolute', 'fixed'):
        return 'none'
    else:
        return value
Check that max_num is an integer.
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/compute_float--crossover with--dataset/ETHPy150Open django/django/django/contrib/admin/checks.py/InlineModelAdminChecks._check_max_num