Python Tricks: : Python 3.5+ type annotations

# 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

Leave a Reply

Your email address will not be published. Required fields are marked *