Reported by @shwina
Minimal reproducer:
import numpy as np
import numba.cuda
def outer(idx: np.int64) -> np.uint8:
def inner(x: np.int64) -> np.uint8: # ← nested fn with annotations
return np.uint8(x % 5)
return inner(idx)
sig = numba.types.uint8(numba.types.int64)
numba.cuda.compile(outer, sig=sig, output="ltoir")
This seems to have something to do with a nested function with annotations.
Reported by @shwina
Minimal reproducer:
This seems to have something to do with a nested function with annotations.