Welcome to Perfect Python, the series where I show you how to take your code to the next level — perfection.
In this episode we'll be talking about enforcing static types using Mypy. This video won't turn Python into a statically typed language, but it will allow you to reap some of the benefits of it nonetheless. Static type checking provides clear insight into what your program is doing, and exactly what functions and classes expect to be passed to them. Autocomplete utilities also use this to provide the best experience to developers, so this isn't just useful for maintainers — it's useful for everyone.
—
If you enjoy my content, consider supporting me on Patreon (or hit the JOIN button below to become a member)!
https://patreon.carberra.xyz
If you need help with anything, feel free to join the Discord server:
https://discord.carberra.xyz
—
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #guide #devops