A decorator is actually a function that normally takes a perform as an argument and returns a closure. The closure is usually a list of internal functions and totally free variables. I had exactly the same problem As well as in my circumstance I had been working with bool instead https://luxuryprojectsgurugram.in/