Emit compile errors instead of ignoring macro invocations inside `#[pymethods]` blocks.