Skip to content

Commit 2a2587b

Browse files
Swap get_type to py::type::of (#453)
This fixes a new failure in WarpX CI (see https://github.com/BLAST-WarpX/warpx/actions/runs/16272157144/job/45942282535?pr=5872) due to deprecation of `get_type()`. --------- Signed-off-by: Roelof Groenewald <rgroenewald@tae.com> Signed-off-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
1 parent b931d51 commit 2a2587b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Base/MPMD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void init_MPMD(py::module &m) {
105105
// only checks same layout, e.g. an `int` in `PyObject` could
106106
// pass this
107107
if (!py::isinstance<py::class_<pyAMReX_PyMPIIntracommObject> >(
108-
app_comm_py.get_type()))
108+
py::type::of(app_comm_py)))
109109
// TODO add mpi4py version from above import check to error
110110
// message
111111
throw std::runtime_error(

0 commit comments

Comments
 (0)