micropython/tests/basics/fun_annotations.py

5 lines
75 B
Python
Raw Normal View History

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