TypeCast/MaryK
TypeCast/Beka00
f1from functools import wrapsf1from functools import wraps
22
33
t4def cast(typ):t4def cast(arg):
5    def newcast(fun):5    def one(arg2):
6        @wraps(fun)6        @wraps(arg2)
7        def newcast1(*args):7        def fun(*args):
8            return typ(fun(*args))8            return arg(arg2(*args))
9        return newcast19        return fun
10    return newcast10    return one
1111
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op