-
Notifications
You must be signed in to change notification settings - Fork 153
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
Provide better type hints for combomethod #236
Labels
Comments
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What was wrong?
The decorator
combomethod
is widely used inweb3.py
,eth-account
packages. However, the language server cannot infer the type of the arguments from function wrapped bycombomethod
.How can it be fixed?
Use ParamSpec added in python3.10 could fix this problem. As we need to provide support for versions minor to 3.10, we can import ParamSpec from typing-extensions. Here is a good solution.
The text was updated successfully, but these errors were encountered: