defextension_enabler(cls):""" This enable you to chain the class """defdecorator(func):# assign the function into the objectsetattr(cls,f"{func.__name__}",func)@functools.wraps(func)defwrapper(*args,**kwargs):func_return=func(*args,**kwargs)returnfunc_returnreturnwrapperreturndecorator