Introduction to mypy
Static type checking for Python
Published in
8 min readApr 6, 2023
We mentioned mypy as a must-have in a previous post about Python best practices — here, we want to introduce it with more details.
mypy, as the docs explain, is a “static type checker for Python”. This means, it adds type annotations and checks to the language Python, which is dynamically typed by design (types are inferred at runtime, as opposed…