python-trio / flake8-async

Highly opinionated linter for Trio code
https://flake8-async.readthedocs.io
MIT License
17 stars 2 forks source link

Fix pyright config since file structure changes, enable optional checks, fix type errors #139

Closed jakkdl closed 1 year ago

jakkdl commented 1 year ago

I've been bouncing some issues at https://github.com/microsoft/pyright and during that realized that the strict setting hadn't been updated since the file structure was changed - oopsies. Also tested all optional checks that aren't turned on, even with strict, and other than unused type: ignore which collides massively with mypy, I left them all on :innocent: And ofc fixed all the warnings everywhere as a result of the ones above. The missing super() calls in classes that don't inherit is a bit silly, but otherwise they all seem reasonable and did catch some potentially useful things in the tests.