Use typehints wherever possible to improve code safety and IDE support
- ·
- Telegram
- ·
- Newsletter
🔥 Simple typehints and annotations go a long way
Even without any docblocks, this code is perfectly understandable by both developers and IDEs
Writing code like this: 👉 Prevents bugs using type safety 👉 Makes the code self-documenting 👉 Takes only a few seconds to implement