You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decorator combomethod is widely used in web3.py, eth-account packages. However, the language server cannot infer the type of the arguments from function wrapped by combomethod.
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:
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: