File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ PYBIND11_NOINLINE module_ import_numpy_core_submodule(const char *submodule_name
131
131
/* `numpy.core` was renamed to `numpy._core` in NumPy 2.0 as it officially
132
132
became a private module. */
133
133
if (major_version >= 2 ) {
134
- return py:: module_::import ((std::string (" numpy._core." ) + submodule_name).c_str ());
134
+ return module_::import ((std::string (" numpy._core." ) + submodule_name).c_str ());
135
135
} else {
136
- return py:: module_::import ((std::string (" numpy.core." ) + submodule_name).c_str ());
136
+ return module_::import ((std::string (" numpy.core." ) + submodule_name).c_str ());
137
137
}
138
138
}
139
139
Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ class cpp_function : public function {
1142
1142
}
1143
1143
msg += " kwargs: " ;
1144
1144
bool first = true ;
1145
- for (auto kwarg : kwargs) {
1145
+ for (const auto & kwarg : kwargs) {
1146
1146
if (first) {
1147
1147
first = false ;
1148
1148
} else {
You can’t perform that action at this time.
0 commit comments