Skip to content

Commit d786101

Browse files
committed
Rename eth module files to match convention
- Agreed upon convention for a module is `module/base_module.py`, `module/module.py`, and `module/async_module.py`
1 parent 15d185b commit d786101

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

newsfragments/2772.internal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename the newly-split ``eth`` module files to match convention.

web3/eth/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from .async_eth import ( # noqa: F401
22
AsyncEth,
33
)
4-
from .base import ( # noqa: F401
4+
from .base_eth import ( # noqa: F401
55
BaseEth,
66
)
7-
from .main import ( # noqa: F401
7+
from .eth import ( # noqa: F401
88
Eth,
99
Contract,
1010
)

web3/eth/async_eth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
AsyncContract,
3838
AsyncContractCaller,
3939
)
40-
from web3.eth.base import (
40+
from web3.eth.base_eth import (
4141
BaseEth,
4242
)
4343
from web3.exceptions import (
File renamed without changes.

web3/eth/main.py renamed to web3/eth/eth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
Contract,
5454
ContractCaller,
5555
)
56-
from web3.eth.base import (
56+
from web3.eth.base_eth import (
5757
BaseEth,
5858
)
5959
from web3.exceptions import (

0 commit comments

Comments
 (0)