def Decorator(*pos, **kwargs):
def innerFunc(arg, num):
arg()
print('Inner function')
print(kwargs['name'])
return innerFunc
@Decorator(name = 'Michael')
def inputFunc():
print('Input Function')
Why does applying the Decorator to inputFunc automatically call it? I would like to pass in some arguments to the decorated function but cannot because the Decorator already calls it