Skip to content

Commit ee7f464

Browse files
committed
Modify py::type argument to support older pybind
1 parent fdc2232 commit ee7f464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ PYBIND11_MODULE(btpy_cpp, m)
140140
py::class_<BehaviorTreeFactory>(m, "BehaviorTreeFactory")
141141
.def(py::init())
142142
.def("register",
143-
[](BehaviorTreeFactory& factory, const py::type type, const py::args& args,
143+
[](BehaviorTreeFactory& factory, const py::object& type, const py::args& args,
144144
const py::kwargs& kwargs) {
145145
const std::string name = type.attr("__name__").cast<std::string>();
146146

0 commit comments

Comments
 (0)