3 ms·
Yes, mypy is terrific, and has changed the way I write Python programs. Taking this gradual typing tool a step further, you can run your tests with the typegua
by SnowflakeOnIce 6y ago
Yes, mypy is terrific, and has changed the way I write Python programs.
Taking this gradual typing tool a step further, you can run your tests with the typeguard plugin for pytest, which will dynamically check the types of most values, pointing out places where your types are a lie.
https://typeguard.readthedocs.io/en/latest/userguide.html#using-the-pytest-plugin https://typeguard.readthedocs.io/en/latest/userguide.html#us...
- viraptor 6y agoThat's amazing. Thank you for mentioning this.