diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-10 21:59:11 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-10 21:59:11 +0000 |
commit | e8d2c3cf6cf835af79d09893a367f25d5ef487cd (patch) | |
tree | 3bbe5cedfacb6d52637d22e1cbb0139a0c2a9594 /tests | |
parent | d46ca25757b9021809946bb7274376c410b699eb (diff) | |
parent | 2f0b026a44eccc9b2a55ed70f72bd91c935897d4 (diff) | |
download | micropython-e8d2c3cf6cf835af79d09893a367f25d5ef487cd.tar.gz micropython-e8d2c3cf6cf835af79d09893a367f25d5ef487cd.zip |
Merge pull request #267 from pfalcon/func-ret-ann
Clean up handling of function return type annotation.
Diffstat (limited to 'tests')
-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])) |