While these warnings point to real errors in the code, PyMethodDef are an exception where functions with different numbers of arguments are all cast to the same function type.
Also see #103343. Pull Request: https://projects.blender.org/blender/blender/pulls/110299