4 ms·
To learn how to use it, I would recommend setting up your IDE (I recommend VS Code) to use mypy. Then just open a small script you know well, let's say less th
by ThePadawan 6y ago
To learn how to use it, I would recommend setting up your IDE (I recommend VS Code) to use mypy.
Then just open a small script you know well, let's say less than 200 lines, and check what "missing" type annotations mypy complains about.
For most cases, the IDE will be able to tell you what it recommends, and from then you can start reading the docs for specific types for a deeper dive.
- dharbin 6y agoPylance is much faster and can index a large virtualenv without issue, IMO