def is_empty_tuple(ty):
    """ returns if 'ty' is an empty tuple """
    return (
        isinstance(ty, types.Tuple) and
        len(ty.types) == 0
    )
 returns if 'ty' is an empty tuple 
numba/core/cgutils.py