How to avoid multiple overload functions for the same config variable

A somewhat close solution. So, there is this dead branch pruning in numba

@numba.njit
def aNumaFunc(flag):
    if flag is None:
        variable1 = None
    else
        variable1 = "a different dataype"
    return variable1

The above code will work but,

@numba.njit
def aNumaFunc(flag):
    if flag is None:
        variable1 = 1
    else
        variable1 = "a different dataype"
    return variable1

This would not.