@returns(int) @params(a=int, b=int) def add(a, b): return a + b
@typ(int, int, ret=int) def add(a, b): return a + b
Senko's version has the advantage that you can compose types in it, e.g. {str:int} is a dictionary whose keys are strings and values are integers.
Senko's version has the advantage that you can compose types in it, e.g. {str:int} is a dictionary whose keys are strings and values are integers.