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

Switch PDF::Reader::WidthCalculator::BuiltIn to typed:strict #475

Closed yob closed 2 years ago

yob commented 2 years ago

This required a couple of surprising things for sorbet to be happy with me declaring type hints for a constant in an RBI file:

[1] https://stackoverflow.com/questions/70770441/how-can-i-resolve-sorbet-error-constants-must-have-type-annotations-with-t-let [2] https://github.com/sorbet/sorbet/issues/5137