Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from functools import wraps
- # from __future__ import print_function
- def takes(*args):
- def help(f):
- @wraps(f)
- def inner(*args2):
- for i in range(min(len(args), len(args2))):
- if not isinstance(args2[i], args[i]):
- raise TypeError
- f(*args2)
- return inner
- return help
- exec(sys.stdin.read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement