summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/fun-annotations.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-10 22:51:35 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-10 22:51:35 +0000
commitf1081f400b3dd072fd46704d93557bd40ae617e5 (patch)
tree418dbb67431fe21ce9ca8578c3ec271a52ceded5 /tests/basics/fun-annotations.py
parented378cd12f05c78c735dffe1c0a6b3cb4337e67d (diff)
parent724026ab402a13a2344ac6679a665394777ff0fa (diff)
downloadmicropython-f1081f400b3dd072fd46704d93557bd40ae617e5.tar.gz
micropython-f1081f400b3dd072fd46704d93557bd40ae617e5.zip
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'tests/basics/fun-annotations.py')
-rw-r--r--tests/basics/fun-annotations.py4
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]))