Avoid a heap allocation on every legacy py::enum_ load (#5860)

1 file changed