From 99fca1e01351f7589b405f8d4c8b05881623a4ec Mon Sep 17 00:00:00 2001 From: fselmo Date: Thu, 5 Jan 2023 14:34:16 -0700 Subject: [PATCH] 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` --- newsfragments/2772.internal.rst | 1 + web3/eth/__init__.py | 4 ++-- web3/eth/async_eth.py | 2 +- web3/eth/{base.py => base_eth.py} | 0 web3/eth/{main.py => eth.py} | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 newsfragments/2772.internal.rst rename web3/eth/{base.py => base_eth.py} (100%) rename web3/eth/{main.py => eth.py} (99%) diff --git a/newsfragments/2772.internal.rst b/newsfragments/2772.internal.rst new file mode 100644 index 0000000000..9fff076ef3 --- /dev/null +++ b/newsfragments/2772.internal.rst @@ -0,0 +1 @@ +Rename the newly-split ``eth`` module files to match convention. \ No newline at end of file diff --git a/web3/eth/__init__.py b/web3/eth/__init__.py index 7526a177e1..e8422167f2 100644 --- a/web3/eth/__init__.py +++ b/web3/eth/__init__.py @@ -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, ) diff --git a/web3/eth/async_eth.py b/web3/eth/async_eth.py index ae243799bd..5c8f19df2d 100644 --- a/web3/eth/async_eth.py +++ b/web3/eth/async_eth.py @@ -37,7 +37,7 @@ AsyncContract, AsyncContractCaller, ) -from web3.eth.base import ( +from web3.eth.base_eth import ( BaseEth, ) from web3.exceptions import ( diff --git a/web3/eth/base.py b/web3/eth/base_eth.py similarity index 100% rename from web3/eth/base.py rename to web3/eth/base_eth.py diff --git a/web3/eth/main.py b/web3/eth/eth.py similarity index 99% rename from web3/eth/main.py rename to web3/eth/eth.py index 642ad532af..2c41177ddb 100644 --- a/web3/eth/main.py +++ b/web3/eth/eth.py @@ -53,7 +53,7 @@ Contract, ContractCaller, ) -from web3.eth.base import ( +from web3.eth.base_eth import ( BaseEth, ) from web3.exceptions import (