// Copyright (c) 2026 The pybind Community. #include namespace standalone_enum_module_ns { enum SomeEnum {}; } // namespace standalone_enum_module_ns using namespace standalone_enum_module_ns; PYBIND11_MODULE(standalone_enum_module, m) { // Added in PR #6015 pybind11::enum_ some_enum_wrapper(m, "SomeEnum"); }