Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def wrapper(func):
assert func.func_code.co_argcount == len(types)
func.descriptor = Descriptor(func.func_code.co_name, types)
return func