You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Python type stub (.pyi) generation for tesseract_decoder (#189)
Addresses #154.
1. Creates python stub file generation script using pybind11-stubgen.
This script is then called via a genrule when building the Wheel
2. Adds tests to ensure stubfiles exist and are valid python (maybe we
can drop the valid python check + symbol expectation, WDYT?). Note that
I think there is an issue with the visualizer stubs since
Smaller changes:
a. Adds pybind11-stubgen to the requirements file.
Verification:
Unit tests, and just seeing if autocomplete works now:
Autocomplete without stubfiles:
<img width="396" height="161" alt="Screenshot 2026-02-20 at 9 12 48 AM"
src="https://github.com/user-attachments/assets/c2697630-e9f0-4041-9ddb-fe4f60558b0a"
/>
Autocomplete with stubfiles:
<img width="740" height="355" alt="Screenshot 2026-02-20 at 9 09 29 AM"
src="https://github.com/user-attachments/assets/48843008-2558-4379-ab65-d6605fc4c3af"
/>
0 commit comments