For example: def test(a: int, b:???): print(b(a)) def add( x:int): return x + 1 test(1, add) About the ??? after b, how to hint the type of b is "(x:int) -> int" ?