From 2f0b026a44eccc9b2a55ed70f72bd91c935897d4 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 10 Feb 2014 02:04:26 +0200 Subject: Clean up handling of function return type annotation. --- tests/basics/fun-annotations.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/basics/fun-annotations.py (limited to 'tests/basics/fun-annotations.py') 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])) -- cgit v1.2.3