yob / pdf-reader

The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe.
MIT License
1.81k stars 271 forks source link

Add sorbet types for PDF::Font and PDF::Reader::WidthCalculators::* #451

Closed yob closed 2 years ago

yob commented 2 years ago

Slowly filling in type annotations, with the theory I'll eventually pass critical mass and flush out some bugs.

Prompted by @bcoles PR #448, which fixed the kind of bug that sorbet typing should make impossible.