circuitpython/tests/basics/fun-annotations.py
2014-02-10 02:04:26 +02:00

5 lines
75 B
Python

def foo(x: int, y: list) -> dict:
return {x: y}
print(foo(1, [2, 3]))