How can I specify the function type in my type hints? How can I specify the function type in my type hints? python python