Closed owocado closed 2 months ago
Hi, sorry for the delay I trying to find out the problem ...
I just noticed this problem. When we use a class as a decorator, this problem will happen.
class wrap:
def __init__(self, func) -> None:
self.func = func
def __call__(self, *args, **kwds):
return self.func(*args, **kwds)
class Test:
@wrap
def test(self, *args, **kwargs):
pass
a = Test()
a.test()
# TypeError: Test.test() missing 1 required positional argument: 'self'
I will fix this problem in cachebox ASAP.
oh interesting, thank you very much for the follow up. 👍🏼
Thanks 😅 and have a great day ahead!
Hello and greetings,
According to documentation, it says that
cachedmethod
function ignoresself
parameter but as I'm using it currently, it somehow requires it:Is this a bug in cachebox v4.1.0?