-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Type hints web3.providers #1520
Type hints web3.providers #1520
Conversation
2fb0269
to
fd60ca4
Compare
b023025
to
64a8a0e
Compare
64a8a0e
to
be7acaf
Compare
@@ -11,6 +12,6 @@ | |||
AUCTION_START_GAS_MARGINAL = 39000 | |||
|
|||
EMPTY_SHA3_BYTES = HexBytes(b'\0' * 32) | |||
EMPTY_ADDR_HEX = HexAddress('0x' + '00' * 20) | |||
EMPTY_ADDR_HEX = HexAddress(HexStr('0x' + '00' * 20)) |
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.
Wouldn't this be HexAddress
?
@@ -56,7 +57,9 @@ | |||
) | |||
|
|||
|
|||
ENS_MAINNET_ADDR = ChecksumAddress(HexAddress('0x314159265dD8dbb310642f98f50C066173C1259b')) | |||
ENS_MAINNET_ADDR = ChecksumAddress( | |||
HexAddress(HexStr('0x314159265dD8dbb310642f98f50C066173C1259b')) |
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.
Oh, that's awkward..... that we have to do the double wrap.
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.
Yeah, I can't say I'm a huge fan. It'll probably be somewhat confusing/frustrating to devs as it breaks their mypys - at least initially, until they get used to the convention. But, I'm not so sure the awkwardness is worth relaxing the HexAddress
back to str
?
6ece7a9
to
645085d
Compare
What was wrong?
Finish type hinting
web3.providers
Cute Animal Picture