@@ -513,6 +513,9 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
513513 .def (" find_children" , [](Composition* c, py::object descended_from_type, std::optional<TimeRange> const & search_range, bool shallow_search) {
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 )
516+ .def (" find_clips" , [](Composition* c, std::optional<TimeRange> const & search_range, bool shallow_search) {
517+ return find_clips (c, search_range, shallow_search);
518+ }, " search_range" _a = std::nullopt , " shallow_search" _a = false )
516519 .def (" handles_of_child" , [](Composition* c, Composable* child) {
517520 auto result = c->handles_of_child (child, ErrorStatusHandler ());
518521 return py::make_tuple (py::cast (result.first ), py::cast (result.second ));
@@ -586,16 +589,12 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
586589 .def (" neighbors_of" , [](Track* t, Composable* item, Track::NeighborGapPolicy policy) {
587590 auto result = t->neighbors_of (item, ErrorStatusHandler (), policy);
588591 return py::make_tuple (py::cast (result.first .take_value ()), py::cast (result.second .take_value ()));
589- }, " item" _a, " policy" _a = Track::NeighborGapPolicy::never)
590- .def (" find_clips" , [](Track* t, std::optional<TimeRange> const & search_range, bool shallow_search) {
591- return find_clips (t, search_range, shallow_search);
592- }, " search_range" _a = std::nullopt , " shallow_search" _a = false );
592+ }, " item" _a, " policy" _a = Track::NeighborGapPolicy::never);
593593
594594 py::class_<Track::Kind>(track_class, " Kind" )
595595 .def_property_readonly_static (" Audio" , [](py::object /* self */ ) { return Track::Kind::audio; })
596596 .def_property_readonly_static (" Video" , [](py::object /* self */ ) { return Track::Kind::video; });
597597
598-
599598 py::class_<Stack, Composition, managing_ptr<Stack>>(m, " Stack" , py::dynamic_attr ())
600599 .def (py::init ([](std::string name,
601600 std::optional<std::vector<Composable*>> children,
@@ -621,10 +620,7 @@ Should be subclassed (for example by :class:`.Track` and :class:`.Stack`), not u
621620 " source_range" _a = std::nullopt ,
622621 " markers" _a = py::none (),
623622 " effects" _a = py::none (),
624- py::arg_v (" metadata" _a = py::none ()))
625- .def (" find_clips" , [](Stack* s, std::optional<TimeRange> const & search_range, bool shallow_search) {
626- return find_clips (s, search_range, shallow_search);
627- }, " search_range" _a = std::nullopt , " shallow_search" _a = false );
623+ py::arg_v (" metadata" _a = py::none ()));
628624
629625 py::class_<Timeline, SerializableObjectWithMetadata, managing_ptr<Timeline>>(m, " Timeline" , py::dynamic_attr ())
630626 .def (py::init ([](std::string name,
0 commit comments