def is_integer_target(target):
    """Determines whether the provided target is an integer.

    Args:
        target: an integer or RGB hex string

    Returns:
        True/False
    """
    return isinstance(target, numbers.Integral) or (
        isinstance(target, str) and target.replace("-", "", 1).isdigit()
    )
Determines whether the provided target is an integer.

    Args:
        target: an integer or RGB hex string

    Returns:
        True/False
    
fiftyone/core/fields.py