Python Type Hints
Using TypeAlias
to abstract complicated hints or to provide additional information:
from typing import TypeAlias |
Type hint for Class
(available for Python 3.11+):
from typing import Self |
Hinting literals:
from typing import Literal |