Annotations can be used for anything you like: they are arbitrary Python expressions (however, problems are currently being discussed with this in future releases of Python).
This is why (int, int) works like an annotation. (1 + 3) also works as an annotation.
Some annotations are understood by mypy and other types of python type checking as type annotations: Tuple[Int, Int] - such an annotation.
In short: use Tuple[Int, Int] .
source share