■ はじめに
関数アノテーション について、調べてみた
■ 関数アノテーション
* PEP 3107 -- Function Annotations (※PEP : Python Enhancement Proposals) * From Python 3.0
■ サンプル
def add_person(name: str, is_male: bool = True) -> bool: # 実装 return True
参考文献
https://gammasoft.jp/blog/python3-function-annotations/
https://note.nkmk.me/python-function-annotations-typing/
https://gihyo.jp/dev/serial/01/pythonhacks/0007