Back to Browse

The REAL Reason You Should Use Type Hints in Python

35.6K views
May 2, 2025
13:01

👷 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. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 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

Download

1 formats

Video Formats

360pmp429.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

The REAL Reason You Should Use Type Hints in Python | NatokHD