The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
An Intro to Type Checking in Python

An Intro to Type Checking in Python

Mike Driscoll's avatar
Mike Driscoll
May 30, 2023
∙ Paid
10

Share this post

The Python Papers
The Python Papers
An Intro to Type Checking in Python
1
Share

Type checking or hinting is a newer feature of Python that was added in Python 3.5. Type hinting is also known as type annotation. Type hinting is adding special syntax to functions and variable declarations that tell the developer what type the argument or variable is.

Python does not enforce the type hints. You can still change types at will in Python …

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share