-
Notifications
You must be signed in to change notification settings - Fork 21
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
alru_cache decorator on a class method causes mypy error: Missing positional argument "self" #104
Comments
This might take a bit. The standard library type hints just ignore all arguments, making the implicit- |
It looks like it is not possible to stitch things together using |
Turns out in principle it is possible to annotate a descriptor ( For the time being, #105 will implement a middle ground: Full type support on functions, parameter erasure on methods. |
Wow! Thank you for your hard work. |
Looks like I found out how to stitch together |
How nice!! |
Thank you for the amazing project.
I'm trying to apply
alru_cache
on a class method, but mypy raises an error and a note:below is the reproducible example tested with mypy 1.1.1 and asyncstdlib 3.10.5
The text was updated successfully, but these errors were encountered: