Is it possible using Python 3 syntax for declaring input parameters and return value types determine those types? Similarly to determining the number of parameters of a func
def foo(name: str) -> int: pass foo.__annotations__ # {'name': , 'return': } foo.__annotations__['return'].__name__ # 'int'