formations/algo/algofundoc/src/typetype.py

6 lines
169 B
Python
Raw Normal View History

2018-08-24 14:09:11 +02:00
# Python 3.5+ supports 'type annotations' that can be
# used with tools like Mypy to write statically typed Python:
def my_add(a: int, b: int) -> int:
return a + b