Skip to content

Commit

Permalink
Rename eth module files to match convention
Browse files Browse the repository at this point in the history
- Agreed upon convention for a module is `module/base_module.py`, `module/module.py`, and `module/async_module.py`
  • Loading branch information
fselmo committed Jan 5, 2023
1 parent 15d185b commit 99fca1e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions newsfragments/2772.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rename the newly-split ``eth`` module files to match convention.
4 changes: 2 additions & 2 deletions web3/eth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from .async_eth import ( # noqa: F401
AsyncEth,
)
from .base import ( # noqa: F401
from .base_eth import ( # noqa: F401
BaseEth,
)
from .main import ( # noqa: F401
from .eth import ( # noqa: F401
Eth,
Contract,
)
2 changes: 1 addition & 1 deletion web3/eth/async_eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
AsyncContract,
AsyncContractCaller,
)
from web3.eth.base import (
from web3.eth.base_eth import (
BaseEth,
)
from web3.exceptions import (
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion web3/eth/main.py → web3/eth/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
Contract,
ContractCaller,
)
from web3.eth.base import (
from web3.eth.base_eth import (
BaseEth,
)
from web3.exceptions import (
Expand Down

0 comments on commit 99fca1e

Please sign in to comment.