Apr-21-2020, 01:21 PM
(This post was last modified: Apr-21-2020, 01:21 PM by deanhystad.)
The inner function has to have the same arguments as the function it decorates. Normally this is done by using *args and **kwargs which match any arguments, but in your case your inside_check function needs a "self" argument. It doesn't have to use it, but it needs it so it can provide that as an argument and make the signature match.