Skip to content

Commit

Permalink
Merge branch 'python-3.13.1-iterator-breakage' into Binding-SkFontMgr…
Browse files Browse the repository at this point in the history
…_New_Custom_Directory
  • Loading branch information
HinTak committed Dec 29, 2024
2 parents 293bec3 + b87ed1e commit bda7cdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/skia/TextBlob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ py::class_<SkTextBlob::Iter::Run>(iter, "Run")

iter
.def(py::init<const SkTextBlob&>())
.def("__iter__",
[] (SkTextBlob::Iter& it) {
return it;
})
.def("__next__",
[] (SkTextBlob::Iter& it) {
SkTextBlob::Iter::Run run;
Expand Down

0 comments on commit bda7cdf

Please sign in to comment.