Thanks for 'user2357112'.
You are corrected. It works now.
The argument and Numba signature must be matched exactly.
# type define
TransNote = namedtuple('TransNote',
['sym_id', 'buy_date', 'buy_price', 'buy_pos', 'buy_cost',
'sell_date', 'sell_price', 'sell_income'])
TransNoteType = nb.types.NamedTuple([nb.int64, nb.int64, nb.float64, nb.float64, nb.float64,
nb.int64, nb.float64, nb.float64],
TransNote)
# function definition
def append_tn(self, sym_id, buy_date, buy_price, buy_pos, buy_costs, sell_date, sell_price, sell_income):
item = TransNote(sym_id, buy_date, buy_price, buy_pos, buy_costs, sell_date, sell_price, sell_income)
self.tn_list.append(item)
# Call function
tn_lite.append_tn(10, 20_000, 11.23, 100, 1123.0, 21_000, 11.11, 1111.0)
# ^
But for numba, it is a little difficult for debugging these exception.