Skip to content

Conversation

@fselmo
Copy link
Collaborator

@fselmo fselmo commented May 29, 2024

What was wrong?

closes #3396 together with #3410

How was it fixed?

  • Adds AsyncEthereumTesterProvider to web3/__init__.py.
  • Adds EthereumTesterProvider and AsyncEthereumTesterProvider to web3/providers/__init__.py.
  • Update __all__ in web3/__init__.py to include all provider classes, including base classes.
  • Add __all__ for web3/providers/__init__.py including all explicit exports.

Todo:

Cute Animal Picture

20240529_124042

@fselmo fselmo force-pushed the update-provider-explicit-exports branch from 42ef2c6 to ffbc5c9 Compare May 29, 2024 18:46
@fselmo fselmo marked this pull request as ready for review May 29, 2024 18:47
@fselmo fselmo force-pushed the update-provider-explicit-exports branch 2 times, most recently from f9b7f21 to 0e4b0c3 Compare May 29, 2024 18:58
@fselmo fselmo requested review from kclowes, pacrob and reedsa May 29, 2024 19:00
Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

LGTM! Do we need to export __all__ in other __init__ too? like in #3402?

@fselmo
Copy link
Collaborator Author

fselmo commented May 29, 2024

LGTM! Do we need to export __all__ in other __init__ too? like in #3402?

Ah, I missed that PR. Yeah, I think that's nice to have. I will rebase off of it and add the missing exports after the fact.

wolovim and others added 3 commits May 29, 2024 15:09
* Require eth-account 0.13.x to get doctests passing

* Fix eth-account doctests

* Move signHash -> unsafe_sign_hash

* Add newsfragment
- Adds AsyncEthereumTesterProvider to web3/__init__.py.
- Adds EthereumTesterProvider and AsyncEthereumTesterProvider to web3/providers/__init__.py.
- Update __all__ in web3/__init__.py to include all provider classes, including base classes.
- Add __all__ for web3/providers/__init__.py including all explicit exports.
@fselmo fselmo force-pushed the update-provider-explicit-exports branch from 0e4b0c3 to fb3aa01 Compare May 29, 2024 21:10
@fselmo fselmo mentioned this pull request May 29, 2024
3 tasks
@fselmo
Copy link
Collaborator Author

fselmo commented May 29, 2024

@kclowes rebased off #3402. My only remaining questions are whether things like combine_middleware, re-exporting Web3 even though it's only used internally in places like web3/middleware/__init__.py, etc are desired. I lean towards a no on that but can also leave it as it was in #3402.

@kclowes
Copy link
Collaborator

kclowes commented May 29, 2024

No, I don't think we want to re-export Web3 or export combine_middleware

@fselmo fselmo merged commit 6f23635 into ethereum:main May 30, 2024
@fselmo fselmo deleted the update-provider-explicit-exports branch May 30, 2024 16:13
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.

Explicitly export symbols via __all__

4 participants