Skip to content
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

Extend and more properly define typing for BlockIdentifier #47

Merged
merged 2 commits into from Jun 28, 2023

Conversation

fselmo
Copy link
Contributor

@fselmo fselmo commented Jun 28, 2023

What was wrong?

  • BlockIdentifier does not cover all possible cases, such as BlockParams

How was it fixed?

  • Borrowing from the typing used in web3.py, where it has worked quite well, BlockIdentifer needed some modernizing in this library that would be nice to use across other libraries. eth-tester could benefit once type hinting is introduced there.

Todo:

Cute Animal Picture

20230628_113301

@fselmo fselmo force-pushed the extend-typing-for-block-identifier branch from 2e5074a to be23076 Compare June 28, 2023 17:09
- Borrowing from the typing used in web3.py, where it has worked quite well, ``BlockIdentifer`` needed some modernizing that would be nice to use across libraries. eth-tester could benefit once type hinting is introduced there.
@fselmo fselmo force-pushed the extend-typing-for-block-identifier branch from be23076 to bb75480 Compare June 28, 2023 17:10
- Use the same versioning as web3.py. This will be removed in a few months for the next major release since python 3.7 is unsupported as of yesterday.
@fselmo fselmo force-pushed the extend-typing-for-block-identifier branch from 82f1ce2 to 2b5acfd Compare June 28, 2023 17:30
@fselmo fselmo marked this pull request as ready for review June 28, 2023 17:34
@fselmo fselmo requested review from pacrob and reedsa June 28, 2023 17:34
Copy link
Contributor

@reedsa reedsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

@pacrob pacrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@fselmo fselmo merged commit 754031b into ethereum:master Jun 28, 2023
19 checks passed
@fselmo fselmo deleted the extend-typing-for-block-identifier branch June 28, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants