Annotations and the type checker
Python's annotations are optional, are not enforced at run time, and in 3.14 are not even evaluated unless something asks for them. This lesson covers the modern syntax and how to run a checker that makes them worth writing.
12 min readintermediate
Sign in to read this lesson
This lesson is part of Types, errors and resources, which a free account opens. The orientation module of every course reads without one.
An account is free. There is no paid plan, no tier and nothing to buy.