def maxWithNone(a, b):
    """ Returns maximal value from two values, if any of them is None, returns other one.

    :param a: int, float or None value
    :param b: int, float or None value
    :return: class instance with given properties
    >>> maxWithNone(None, 1)
    1
    """
    if a == None:
        return b
    elif b == None:
        return a
    else:
        return max(a, b)