Python — From Basics to Advanced · Advanced Functions
Type Hints — Type Annotations
Advanced Functions
Introduction
Python is dynamically typed, but since version 3.5 you can add type hints. They do not affect runtime — they help your editor, tools like mypy and your future self. In this lesson you learn the syntax and pragmatic usage.