Skip to content

Commit 9d4c10e

Browse files
committed
fixed semicolons
Signed-off-by: Yingjie Wang <[email protected]>
1 parent 611a24f commit 9d4c10e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,11 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
514514
return find_children(c, descended_from_type, search_range, shallow_search);
515515
}, "descended_from_type"_a = py::none(), "search_range"_a = std::nullopt, "shallow_search"_a = false)
516516

517+
// ToDo: add find_clips here
517518
.def("find_clips", [](Composition* c, std::optional<TimeRange> const& search_range, bool shallow_search) {
518519
return find_clips(c, search_range, shallow_search);
519-
}, "search_range"_a = std::nullopt, "shallow_search"_a = false);
520+
}, "search_range"_a = std::nullopt, "shallow_search"_a = false)
521+
// ==========================
520522

521523
.def("handles_of_child", [](Composition* c, Composable* child) {
522524
auto result = c->handles_of_child(child, ErrorStatusHandler());
@@ -591,8 +593,10 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
591593
.def("neighbors_of", [](Track* t, Composable* item, Track::NeighborGapPolicy policy) {
592594
auto result = t->neighbors_of(item, ErrorStatusHandler(), policy);
593595
return py::make_tuple(py::cast(result.first.take_value()), py::cast(result.second.take_value()));
594-
}, "item"_a, "policy"_a = Track::NeighborGapPolicy::never)
595-
596+
}, "item"_a, "policy"_a = Track::NeighborGapPolicy::never);
597+
// .def("find_clips", [](Track* t, std::optional<TimeRange> const& search_range, bool shallow_search) {
598+
// return find_clips(t, search_range, shallow_search);
599+
// }, "search_range"_a = std::nullopt, "shallow_search"_a = false);
596600

597601
py::class_<Track::Kind>(track_class, "Kind")
598602
.def_property_readonly_static("Audio", [](py::object /* self */) { return Track::Kind::audio; })
@@ -624,8 +628,10 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
624628
"source_range"_a = std::nullopt,
625629
"markers"_a = py::none(),
626630
"effects"_a = py::none(),
627-
py::arg_v("metadata"_a = py::none()))
628-
631+
py::arg_v("metadata"_a = py::none()));
632+
// .def("find_clips", [](Stack* s, std::optional<TimeRange> const& search_range, bool shallow_search) {
633+
// return find_clips(s, search_range, shallow_search);
634+
// }, "search_range"_a = std::nullopt, "shallow_search"_a = false);
629635

630636
py::class_<Timeline, SerializableObjectWithMetadata, managing_ptr<Timeline>>(m, "Timeline", py::dynamic_attr())
631637
.def(py::init([](std::string name,

0 commit comments

Comments
 (0)