The Python Papers

Share this post

An Intro to Type Checking in Python

www.pythonpapers.com

An Intro to Type Checking in Python

Mike Driscoll
May 30, 2023
∙ Paid
10
Share this post

An Intro to Type Checking in Python

www.pythonpapers.com
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
© 2023 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing