def is_a(cls, x):  # noqa: F811
    """
    Check if x is an instance of cls.

    Equivalent to isinstance, but auto-curried and with the order or arguments
    flipped.

    Args:
        cls:
            Type or tuple of types to test for.
        x:
            Instance.

    Examples:
        >>> is_int = sk.is_a(int)
        >>> is_int(42), is_int(42.0)
        (True, False)
    """
    return isinstance(x, cls)