Python Type Checking
In this course, you’ll learn aboutPython type checking. Traditionally, types have been handled by the Python interpreter in a flexible but implicit way. Recent versions of Python allow you to specify explicit type hints that can be used by different tools to help you develop your code more efficiently.
In this tutorial, you’ll learn about:
- Type annotations andtype hints
- Addingstatic types to code, both your code and the code of others
- Running astatic type checker
- Enforcing types at runtime
You’ll go on a tour of how type hints work in Python and find out if type checking is something you want to use in your code. If you want to learn more, you can check out the resources that will be linked to throughout this course.
What’s Included:
- 11 Lessons
- Video Subtitles and Full Transcripts
- 1 Downloadable Resource
- Accompanying Text-Based Tutorial
- Interactive Quiz to Check Your Progress
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths:
Python Type Checking
11 Lessons 1h 7m
- 1. Python Type Checking: Overview02:17
- 2. Dynamic vs Static05:47
- 3. Duck Typing02:56
- 4. Type Hinting06:50
- 5. Type Checking With Mypy05:18
- 6. Pros and Cons of Type Hints04:28
- 7. Annotations07:11
- 8. Type Comments08:36
- 9. Playing With Python Types09:58
- 10. Python Type Checking (Quiz)11:30
- 11. Python Type Checking: Summary02:17
AboutChristopher Bailey
Christopher Bailey is the creator and host of the Real Python podcast. He also manages the video course pipeline, coordinating with the video course creators and our in house editor. He is a programmer and data analyst.
» More about ChristopherParticipant Comments
glenferguson
I have been using type hints for years and still learned something new in the video. Specifically, adding alias for types :)











