Skip to content

Commit 6d1f28f

Browse files
authored
feat: remove make_simple_namespace (#5597)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 73ad309 commit 6d1f28f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/pybind11/pybind11.h

-7
Original file line numberDiff line numberDiff line change
@@ -1517,13 +1517,6 @@ inline dict globals() {
15171517
#endif
15181518
}
15191519

1520-
template <typename... Args, typename = detail::enable_if_t<args_are_all_keyword_or_ds<Args...>()>>
1521-
PYBIND11_DEPRECATED("make_simple_namespace should be replaced with "
1522-
"py::module_::import(\"types\").attr(\"SimpleNamespace\") ")
1523-
object make_simple_namespace(Args &&...args_) {
1524-
return module_::import("types").attr("SimpleNamespace")(std::forward<Args>(args_)...);
1525-
}
1526-
15271520
PYBIND11_NAMESPACE_BEGIN(detail)
15281521
/// Generic support for creating new Python heap types
15291522
class generic_type : public object {

0 commit comments

Comments
 (0)