@numba.jitclass({'n': numba.uint})
class Odd:

    def __init__(self):
        self.n = 1

def __iter__(self):
    return self

def __next__(self):
    n = self.n
self.n += 2
return n
generator argument in Numba