What Does -> Mean in Python Function Definitions? Quiz - Real Python
Python uses -> in function signatures to provide return type hints and enable static checking with tools like mypy; annotate containers for precise types.
Python type hinting supports variable and function annotations, generics, TypedDict, decorators, and can be enforced with Mypy or ty in pre-commit or GitHub Actions.