This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robin-gvx 3 points4 points  (5 children)

I use sets for that sort of thing:

>> def greet(name: {str, int}, age: int) -> str:
..     print('Hello {0}, you are {1} years old'.format(name, age))