Skip to content

Commit f2e4186

Browse files
authored
Merge pull request #826 from luxonis/py_bindings_node_input
Py bindings node input
2 parents f296c2e + 561dcd1 commit f2e4186

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pipeline/node/NodeBindings.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ void NodeBindings::bind(pybind11::module& m, void* pCallstack){
213213
.def_readwrite("group", &Node::Input::group, DOC(dai, Node, Input, group))
214214
.def_readwrite("name", &Node::Input::name, DOC(dai, Node, Input, name))
215215
.def_readwrite("type", &Node::Input::type, DOC(dai, Node, Input, type))
216+
.def_readwrite("possibleDatatypes", &Node::Input::possibleDatatypes, DOC(dai, Node, Input, possibleDatatypes))
217+
.def("getParent", static_cast<const Node& (Node::Input::*)() const>(&Node::Input::getParent), py::return_value_policy::reference_internal, DOC(dai, Node, Input, getParent))
218+
.def("getParent", static_cast<Node& (Node::Input::*)()>(&Node::Input::getParent), py::return_value_policy::reference_internal, DOC(dai, Node, Input, getParent))
216219
.def("setBlocking", &Node::Input::setBlocking, py::arg("blocking"), DOC(dai, Node, Input, setBlocking))
217220
.def("getBlocking", &Node::Input::getBlocking, DOC(dai, Node, Input, getBlocking))
218221
.def("setQueueSize", &Node::Input::setQueueSize, py::arg("size"), DOC(dai, Node, Input, setQueueSize))

0 commit comments

Comments
 (0)