👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis.
In this video, I’m going to show you why type hints in Python are useful, how to add them to your Python code, as well as some interesting properties of type hints that really surprised me.
🔥 GitHub Repository: https://git.arjan.codes/2025/typehints.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses.
🔖 Chapters:
0:00 Intro
0:23 Background
1:17 Adding Type Hints to a Function
3:11 A Better Data Structure?
5:26 Best Practice: Be Generic for Input
5:49 Another example of generic inputs
8:13 Best practice: use Specific Outputs
10:07 Another example
11:51 Final thoughts
#arjancodes #softwaredesign #python