MCPcopy Create free account
hub / github.com/pybind/pybind11 / Cat

Method Cat

tests/test_local_bindings.cpp:120–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 class Cat : public pets::Pet {
119 public:
120 explicit Cat(std::string name) : Pet(std::move(name)) {}
121 };
122 py::class_<pets::Pet>(m, "Pet", py::module_local()).def("get_name", &pets::Pet::name);
123 // Binding for local extending class:

Callers 1

test_cross_module_callsFunction · 0.45

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected