Movatterモバイル変換


[0]ホーム

URL:


The Ultimate Guide to Python Type Checking

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:

Start Now

Python Type Checking

11 Lessons 1h 7m

  1. 1. Python Type Checking: Overview02:17
  2. 2. Dynamic vs Static05:47
  3. 3. Duck Typing02:56
  4. 4. Type Hinting06:50
  5. 5. Type Checking With Mypy05:18
  6. 6. Pros and Cons of Type Hints04:28
  7. 7. Annotations07:11
  8. 8. Type Comments08:36
  9. 9. Playing With Python Types09:58
  10. 10. Python Type Checking (Quiz)11:30
  11. 11. Python Type Checking: Summary02:17
Start Now

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 Christopher

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Related Courses:

Participant Comments

Avatar image for glenferguson

glenferguson

I have been using type hints for years and still learned something new in the video. Specifically, adding alias for types :)

← Browse All Courses


[8]ページ先頭

©2009-2026 Movatter.jp