tubeshowcaseā—1,185,207 videosā™” My collection 0
← Learn to Code

Learn to Code13:01

The REAL Reason You Should Use Type Hints in Python

ArjanCodes ↗

From the creator

šŸ‘· 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

Published 2025-05-02 Ā· Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code