3 ms·
I am moving all my open source projects to `mypy --strict`. Here's the diff of adding basic / --strict mypy types: libvcs: https://github.com/vcs-python/libvc
by tony 4y ago
I am moving all my open source projects to `mypy --strict`. Here's the diff of adding basic / --strict mypy types:
libvcs: https://github.com/vcs-python/libvcs/pull/362/files https://github.com/vcs-python/libvcs/pull/362/files, https://github.com/vcs-python/libvcs/pull/390/files https://github.com/vcs-python/libvcs/pull/390/files
libtmux: https://github.com/tmux-python/libtmux/pull/382/files https://github.com/tmux-python/libtmux/pull/382/files, https://github.com/tmux-python/libtmux/pull/383/files https://github.com/tmux-python/libtmux/pull/383/files
unihan-etl: https://github.com/cihai/unihan-etl/pull/255/files https://github.com/cihai/unihan-etl/pull/255/files, https://github.com/cihai/unihan-etl/pull/257/files https://github.com/cihai/unihan-etl/pull/257/files
Perks:
- code completions (through annotating)
- typings can be used downstream (since the above are all now typed python libraries)
- maintainability, bug finding + Easy to wire into CI and run locally
Longterm, unsure of the return on investment. I do promise to report back if I find it's not worth the effort.
- deleted 4y ago[deleted]