-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
[cpython 3.9] Decorating a classmethod doesn't work #511
Comments
Umm, when I run your example, the output is:
I don't see any errors. |
Appears to be a problem with Python 3.9: #512 |
I don't have any time to look into this, so feel free to debug and come up with a fix, or just move to another version of Python. |
It even works on Pypy 3.9, so it's only cpython 3.9 that fails... Judging by the codecov change, it would appear to be this code which should be run with a classmethod and makes it work normally: async-lru/async_lru/__init__.py Lines 232 to 233 in 565711c
|
I occur this error early today, and I'm sure alru_cache is available when async-lru version < 2.0.0.
|
Response is still the same as above. Either debug and come up with a fix or stop using cpython 3.9. We'll stop supporting 3.9 next year anyway, so it's unlikely we'll look into this. |
It appears that
alru_cache
does not seem to work for classmethods. Here's a contrived example.Error:
I would expect it to work since
lru_cache
works for classmethods.The text was updated successfully, but these errors were encountered: