-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add PEP561 type marker #1583
Add PEP561 type marker #1583
Conversation
@palango I'm pretty new to typing myself, but looking at a similar PR in the eth-abi package, I think what you have is all that you need to do. I ran a |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The change looks in fact correct. A simple way to verify it would be to install web3 at this commit via pip, import some web3 functions, call |
Aha! Thanks @cburgdorf! |
Thanks @cburgdorf I tested with a small script on a venv on my branch and from web3 import Web3
a = Web3()
b = a.eth.getTransactionReceipt('test')
reveal_type(b)
reveal_type(a.eth.getTransactionReceipt) Master
This branch
So this seems to work as expected. Would it be a lot of effort to create a release with this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @palango! And thanks for the input @carver and @cburgdorf!
What was wrong?
Related to Issue #1582
How was it fixed?
This was my first try, but it doesn't seem to work. When running
make dist
I see the following line:But when I later look into the source package, it's not there.
Todo:
Cute Animal Picture