For rationale, see #2241, eeb10448; there is a second entry point function defined by the PYBIND11_MODULE macro that also needs to be annotated as unused.