def METHOD_NAME(self):
    """
    Return remaining capacity or inf if
    capacity_max is not set (i.e. None).
    """
    if self.capacity_max is None:
        return float("inf")
    return self.capacity_max - self.capacity_used