@staticmethod
def _infnone(number):
    """
        Converts a Nonetype object to inf.

        :param number: (int/float/None) a number
        :return: (float) -inf or number
        """
    return float('-inf') if number is None else number
