diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 02:04:26 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 02:04:26 +0200 |
commit | 2f0b026a44eccc9b2a55ed70f72bd91c935897d4 (patch) | |
tree | 14863169fc5f6cd9f2f5b4ab394dd54f1887f55a /tests/basics/fun-annotations.py | |
parent | 76f06de96dbdc4274eb059efe1ce2020f9921835 (diff) | |
download | micropython-2f0b026a44eccc9b2a55ed70f72bd91c935897d4.tar.gz micropython-2f0b026a44eccc9b2a55ed70f72bd91c935897d4.zip |
Clean up handling of function return type annotation.
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])) |