Currently, in Python, a function\'s parameters and return types can be type hinted as follows:
def func(var1: str, var2: str) -> int: return var1.inde
Since Python 3.6, you can (see PEP 526):
from typing import Callable is_even: Callable[[int], bool] = lambda x: (x % 2 == 0)