From 6036dd321130900d96b2c3226df94056364a3bf2 Mon Sep 17 00:00:00 2001 From: Roelof Groenewald Date: Mon, 14 Jul 2025 09:36:23 -0700 Subject: [PATCH 1/2] swap `get_type` to `py::type::of` Signed-off-by: Roelof Groenewald --- src/Base/MPMD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/MPMD.cpp b/src/Base/MPMD.cpp index 155bea34..c4438169 100644 --- a/src/Base/MPMD.cpp +++ b/src/Base/MPMD.cpp @@ -105,7 +105,7 @@ void init_MPMD(py::module &m) { // only checks same layout, e.g. an `int` in `PyObject` could // pass this if (!py::isinstance >( - app_comm_py.get_type())) + py::type::of(app_comm_py)) // TODO add mpi4py version from above import check to error // message throw std::runtime_error( From 1ce7fcc646ba2912e263655f6b4f5007b664ef93 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 14 Jul 2025 09:57:58 -0700 Subject: [PATCH 2/2] Fix Missing `)` Signed-off-by: Axel Huebl --- src/Base/MPMD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/MPMD.cpp b/src/Base/MPMD.cpp index c4438169..53ad99b6 100644 --- a/src/Base/MPMD.cpp +++ b/src/Base/MPMD.cpp @@ -105,7 +105,7 @@ void init_MPMD(py::module &m) { // only checks same layout, e.g. an `int` in `PyObject` could // pass this if (!py::isinstance >( - py::type::of(app_comm_py)) + py::type::of(app_comm_py))) // TODO add mpi4py version from above import check to error // message throw std::runtime_error(