diff options
Diffstat (limited to 'tests/basics/fun-annotations.py')
-rw-r--r-- | tests/basics/fun-annotations.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/fun-annotations.py b/tests/basics/fun-annotations.py new file mode 100644 index 0000000000..85f808ab5b --- /dev/null +++ b/tests/basics/fun-annotations.py @@ -0,0 +1,4 @@ +def foo(x: int, y: list) -> dict: + return {x: y} + +print(foo(1, [2, 3])) |