How to remove the self argument from a decorator's arguments if there is one
How to remove the self argument from a decorator's arguments if there is one Question: Suppose I have a simple decorator, and a classes method and a function which I both decorate with that decorator: import functools def decorator(func): @functools.wraps(func) def call(*args): print(args) func(*args) return call class cls: @decorator def meth(self, a): pass @decorator def …