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.
This PR is a cherry-pick of another, yet unreleased PR (which I hope will amend #270).
Some modules (notably
terminal
andview
) were slightly hard to work with, so I have attempted to provide reasonable type hints for them. This was done by hand (without usingstubgen
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.