From d5c2285c5ac2f62fae758f9268cb6685c0b05570 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 1 Apr 2025 16:49:20 -0400 Subject: [PATCH] feat: remove make_simple_namespace Signed-off-by: Henry Schreiner --- include/pybind11/pybind11.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 75a0b49695..e6606a5976 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1517,13 +1517,6 @@ inline dict globals() { #endif } -template ()>> -PYBIND11_DEPRECATED("make_simple_namespace should be replaced with " - "py::module_::import(\"types\").attr(\"SimpleNamespace\") ") -object make_simple_namespace(Args &&...args_) { - return module_::import("types").attr("SimpleNamespace")(std::forward(args_)...); -} - PYBIND11_NAMESPACE_BEGIN(detail) /// Generic support for creating new Python heap types class generic_type : public object {