

def add(self, sig=None, argtypes=None, restype=None):
    if (argtypes is not None):
        warnings.warn('Keyword argument argtypes is deprecated', DeprecationWarning)
        assert (sig is None)
        if (a is None):
            sig = tuple(argtypes)
        else:
            sig = restype(*argtypes)
    del argtypes
    del restype
    (args, return_type) = sigutils.normalize_signature(sig)
    devfnsig = signature(return_type, *args)
    funcname = self.pyfunc.__name__
    kernelsource = self._get_kernel_source(self._kernel_template, devfnsig, funcname)
    (corefn, return_type) = self._compile_core(devfnsig)
    glbl = self._get_globals(corefn)
    sig = signature(types.void, *([a[:] for a in args] + [return_type[:]]))
    _exec(kernelsource, glbl)
    stager = glbl[('__vectorized_%s' % funcname)]
    kernel = self._compile_kernel(stager, sig)
    argdtypes = tuple((to_dtype(t) for t in devfnsig.args))
    resdtype = to_dtype(return_type)
    self.kernelmap[tuple(argdtypes)] = (resdtype, kernel)

dataset/ETHPy150Open numba/numba/numba/npyufunc/deviceufunc.py DeviceVectorize.add/VarMisuse@50/64 `restype`->`a`