• by cpburns2009 on 6/29/2023, 12:45:29 PM

    I used mypy when I first started adding type annotations. I've found it's more convenient to rely on an IDE to flag type errors (PyCharm in my case). I use types extensively now. TypedDict and NamedTuple make documenting and enforcing structures so much more reliable, regardless of whether you choose mypy or not. Mypy will have the latest and greatest type hinting features because it is an official Python project.