randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Provide type hints for selected modules #393

Open mataha opened 1 year ago

mataha commented 1 year ago

This PR is a cherry-pick of another, yet unreleased PR (which I hope will amend #270).

Some modules (notably terminal and view) were slightly hard to work with, so I have attempted to provide reasonable type hints for them. This was done by hand (without using stubgen or anything of the sort), thus some hints could be narrower (and in turn way longer).

Also fixes a typo in terminal._start_rendering(): receieved -> received. That is the only functional change.