micropython/tests/basics/fun-annotations.py

5 lines
75 B
Python

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