ethereum / web3.py

A python interface for interacting with the Ethereum blockchain and ecosystem.
http://web3py.readthedocs.io
MIT License
5.03k stars 1.71k forks source link

Fix AsyncEth module typing #2013

Closed kclowes closed 1 year ago

kclowes commented 3 years ago

What was wrong?

Because the eth module is called eth regardless of whether or not it refers to the Eth module or the AsyncEth module, the typing is a little bit funky. Once AsyncEth is completely switched over to mirror the functionality of the Eth module, we can make the eth attr here be Union[AsyncEth, Eth]. Then we can go through and remove type: ignores throughout codebase on all await w3.eth... lines.

fselmo commented 1 year ago

closed by #2819