from typing import Any


def isnan(x: Any) -> bool:
    """
    Return True if x is NaN where x can be of any type
    :param x: any object for which (in)equality can be checked
    """
    return x != x