Clean up handling of function return type annotation.

This commit is contained in:
Paul Sokolovsky
2014-02-10 02:04:26 +02:00
parent 76f06de96d
commit 2f0b026a44
3 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
def foo(x: int, y: list) -> dict:
return {x: y}
print(foo(1, [2, 3]))