# Type Hints in Python

Type Hints in Python: Type Hints: Saying What a Value Should Be, Checking Types with mypy.

Updated: November 19, 2026

1. [Type Hints: Saying What a Value Should Be](https://www.ask-codey.com/lessons/python-type-hints) (Apprentice): A type hint is a label on a variable, a parameter or a return value that says what kind of value belongs there, such as float, list\[float\] or a string that may be None, so people and tools can see what a function expects without reading its body.
2. [Checking Types with mypy](https://www.ask-codey.com/lessons/python-type-checking-with-mypy) (Journeyman): mypy reads your type hints and every call without running the code, and reports each place where a value can't be what its hint promises, such as text passed as a price or a None that the next line uses as text.

Source: https://www.ask-codey.com/courses/python-in-depth/topics/python-hints-and-checking
