TypeCast/argashok
TypeCast/aartur
f1from functools import wrapsf1from functools import wraps
22
33
4def cast(t):4def cast(t):
5    def decorator(f):5    def decorator(f):
6        @wraps(f)6        @wraps(f)
n7        def fun(*args):n7        def new_f(*args):
8            res = f(*args)8            res = f(*args)
9            return t(res)9            return t(res)
t10        return funt10        return new_f
11    return decorator11    return decorator
1212
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op