Skip to content

Commit

Permalink
Use alias on bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Voldivh <[email protected]>
  • Loading branch information
Voldivh committed Jul 26, 2023
1 parent ad862cf commit 34eb635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/src/gz/sim/Model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ namespace sim
{
namespace python
{
void defineSimModel(pybind11::object module)
void defineSimModel(py::object module)
{
pybind11::class_<gz::sim::Model>(module, "Model")
.def(pybind11::init<gz::sim::Entity>())
py::class_<gz::sim::Model>(module, "Model")
.def(py::init<gz::sim::Entity>())
.def("entity", &gz::sim::Model::Entity,
"Get the entity which this Model is related to.")
.def("valid", &gz::sim::Model::Valid,
Expand Down

0 comments on commit 34eb635

Please sign in to comment.