https://docs.python.org/3/tutorial/controlflow.html#function-annotations
python 함수를 선언할 때 인자에 타입을 명시하거나 return하는 타입을 기록하는 것을 말함
def f(ham: str, eggs: str = 'eggs') -> str:
return ham + ' and ' + eggs print("Annotations:", f.__annotations__)
print("Arguments:", ham, eggs)