Python numba参数argtypes不推荐使用的关键字

Python numba参数argtypes不推荐使用的关键字,python,numba,Python,Numba,当我键入以下代码时: mandel_numba = numba.jit(restype=uint32, argtypes=[float32, float32, uint32])(mandel) 并获取错误消息 raise DeprecationError(_msg_deprecated_signature_arg.format('argtypes')) numba.errors.DeprecationError: Deprecated keyword argument `argtypes`.

当我键入以下代码时:

mandel_numba = numba.jit(restype=uint32, argtypes=[float32, float32, uint32])(mandel)
并获取错误消息

 raise DeprecationError(_msg_deprecated_signature_arg.format('argtypes'))
numba.errors.DeprecationError: Deprecated keyword argument `argtypes`. Signatures should be passed as the first positional argument.
我的numba版本是0.28.0,我知道numba 0.18版本将旧的不推荐使用的和未记录的argtypes和restype参数删除到@jit decorator


请帮我解决这个问题。

错误消息告诉您它需要什么

Signatures should be passed as the first positional argument.
所以不是

numba.jit(restype=uint32, argtypes=[float32, float32, uint32])
它们应该是定位的

numba.jit(uint32(float32, float32, uint32))