I am trying to build a list of functions that can be used inside jitted numba code. Since reflected lists are deprecated, I use numba's typed lists. Appending to the typed list works as long as I keep adding the same function. However, adding a second function will fail. Is there a way to achieve this with numba?
from numba.typed import List
from numba import njit
@njit()
def foo(b):
b = b * 2.0
return b
@njit()
def bar(a):
a = a + 1.0
return a
l = List()
l.append(foo) # this works
l.append(foo) # this will also work
l.append(bar) # this will fail
the full error message is here [https://pastebin.com/pBciXhGL][1]