We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, there seems to be an issue when cachier is being used as a decorator for a method. - Or am I understanding cachier wrong?
# Python 3.12.3 import cachier # v3.0.0 @cachier.cachier() def test(): return True class Test: @cachier.cachier() def test(self): return True if __name__ == "__main__": assert Test().test() == True # Works assert test() == True # Works cachier.enable_caching() assert Test().test() == True # Works assert test() == True # Works cachier.disable_caching() assert test() == True # Works assert Test().test() == True # TypeError: Test.test() missing 1 required positional argument: 'self'
Thanks,
Philipp
The text was updated successfully, but these errors were encountered:
fix bug #212 and add tests (#227)
5db1b45
The fix for this bug was released in v3.0.1.
v3.0.1
Sorry, something went wrong.
No branches or pull requests
Hi, there seems to be an issue when cachier is being used as a decorator for a method. - Or am I understanding cachier wrong?
Thanks,
Philipp
The text was updated successfully, but these errors were encountered: