def _compare_numbers(expected, topic):
    FALSE_CONDITIONS = (not isinstance(topic, numbers.Number),
                        not isinstance(expected, numbers.Number), )
    if any(FALSE_CONDITIONS):
        return False
    return float(expected) == float(topic)
Asserts the "like"-ness of `topic` and `expected` as Numbers.
dataset/ETHPy150Open heynemann/preggy/preggy/assertions/like.py/_compare_numbers