Explicit TypeAlias in Python 3.10 PEP 613—Explicit Type Aliases introduced a special type, TypeAlias, to make the assignments that create type aliases more visible and easier to type check. Starting with Python 3.10, this is the preferred way to create type aliases: from typing import TypeAlias FromTo: TypeAlias = tuple[str, str]