Skip to content

Commit de809c6

Browse files
committed
fix: Adjusted model bindings
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 1ebba0a commit de809c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/py_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "py_casbin.h"
2222

2323
void bindPyModel(py::module &m) {
24-
py::class_<casbin::Model>(m, "Model")
24+
py::class_<casbin::Model, std::shared_ptr<casbin::Model>>(m, "Model")
2525
.def(py::init<>())
2626
.def(py::init<const std::string &>())
2727

0 commit comments

Comments
 (0)