▲ | Hackbraten 13 hours ago | |
> Type hints are nice, until you have to interact with a library that isn't type-hinted, and then it very quickly becomes a mess. Whenever I find myself in that situation, I usually write a typing stub for the parts that I use from that library (example: [0]) and then let `mypy_path` point to that directory [1]. VS Code will then pick up the hints from those stubs. [0]: https://github.com/claui/itchcraft/blob/5ca04e070f56bf794c38... [1]: https://github.com/claui/itchcraft/blob/5ca04e070f56bf794c38... |