Function

def myFunction(number: int, another: int) ->  bool:
    return True

починаючи з Python3.9 (тип елементів у списку)

def myFunction(number: int, another: str) ->  list[str]:
    return ["fdfdf", "erwer", "werw"]