Skip to content

Commit dd6f40d

Browse files
committed
Add back docstrings pointing to DeviceBase
1 parent 23fb52a commit dd6f40d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/DeviceBindings.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,25 +225,25 @@ void DeviceBindings::bind(pybind11::module& m, void* pCallstack){
225225
}), py::arg("pipeline"), py::arg("devInfo"), py::arg("pathToCmd"), DOC(dai, Device, Device, 7))
226226

227227
// Device constructor - OpenVINO version
228-
.def(py::init([](OpenVINO::Version version){ return deviceConstructorHelper<Device>(version); }), py::arg("version") = Pipeline::DEFAULT_OPENVINO_VERSION)
228+
.def(py::init([](OpenVINO::Version version){ return deviceConstructorHelper<Device>(version); }), py::arg("version") = Pipeline::DEFAULT_OPENVINO_VERSION, DOC(dai, DeviceBase, DeviceBase, 10))
229229
.def(py::init([](OpenVINO::Version version, bool usb2Mode){
230230
// Blocking constructor
231231
return deviceConstructorHelper<Device>(version, std::string(""), usb2Mode);
232-
}), py::arg("version"), py::arg("usb2Mode"))
232+
}), py::arg("version"), py::arg("usb2Mode"), DOC(dai, DeviceBase, DeviceBase, 11))
233233
.def(py::init([](OpenVINO::Version version, const std::string& pathToCmd){
234234
// Blocking constructor
235235
return deviceConstructorHelper<Device>(version, pathToCmd);
236-
}), py::arg("version"), py::arg("pathToCmd"))
236+
}), py::arg("version"), py::arg("pathToCmd"), DOC(dai, DeviceBase, DeviceBase, 12))
237237
.def(py::init([](OpenVINO::Version version, const DeviceInfo& deviceInfo, bool usb2Mode){
238238
// Non blocking constructor
239239
py::gil_scoped_release release;
240240
return std::make_unique<Device>(version, deviceInfo, usb2Mode);
241-
}), py::arg("version"), py::arg("devInfo"), py::arg("usb2Mode") = false)
241+
}), py::arg("version"), py::arg("devInfo"), py::arg("usb2Mode") = false, DOC(dai, DeviceBase, DeviceBase, 15))
242242
.def(py::init([](OpenVINO::Version version, const DeviceInfo& deviceInfo, std::string pathToCmd){
243243
// Non blocking constructor
244244
py::gil_scoped_release release;
245245
return std::make_unique<Device>(version, deviceInfo, pathToCmd);
246-
}), py::arg("version"), py::arg("devInfo"), py::arg("pathToCmd"))
246+
}), py::arg("version"), py::arg("devInfo"), py::arg("pathToCmd"), DOC(dai, DeviceBase, DeviceBase, 16))
247247

248248
.def("getOutputQueue", static_cast<std::shared_ptr<DataOutputQueue>(Device::*)(const std::string&)>(&Device::getOutputQueue), py::arg("name"), DOC(dai, Device, getOutputQueue))
249249
.def("getOutputQueue", static_cast<std::shared_ptr<DataOutputQueue>(Device::*)(const std::string&, unsigned int, bool)>(&Device::getOutputQueue), py::arg("name"), py::arg("maxSize"), py::arg("blocking") = true, DOC(dai, Device, getOutputQueue, 2))

0 commit comments

Comments
 (0)