Used isort

This commit is contained in:
ZigaMr 2022-05-10 01:21:08 +02:00
parent f18444e17c
commit 4b660e96a7
4 changed files with 7 additions and 27 deletions

View File

@ -2,14 +2,7 @@
Modified asynchronous geth_poa_middleware which mirrors functionality of
https://github.com/ethereum/web3.py/blob/master/web3/middleware/geth_poa.py
"""
from typing import (
Any,
Callable,
)
from hexbytes import (
HexBytes,
)
from typing import Any, Callable
from eth_utils.curried import (
apply_formatter_if,
@ -17,23 +10,11 @@ from eth_utils.curried import (
apply_key_map,
is_null,
)
from eth_utils.toolz import (
complement,
compose,
assoc,
)
from web3._utils.rpc_abi import (
RPC,
)
from web3.types import (
Formatters,
RPCEndpoint,
RPCResponse,
)
from eth_utils.toolz import assoc, complement, compose
from hexbytes import HexBytes
from web3 import Web3 # noqa: F401
from web3._utils.rpc_abi import RPC
from web3.types import Formatters, RPCEndpoint, RPCResponse
async def get_geth_poa_middleware(

View File

@ -53,10 +53,8 @@ from mev_inspect.schemas.traces import ClassifiedTrace
from mev_inspect.schemas.transfers import Transfer
from mev_inspect.swaps import get_swaps
from mev_inspect.transfers import get_transfers
from mev_inspect.liquidations import get_liquidations
from mev_inspect.utils import RPCType
logger = logging.getLogger(__name__)

View File

@ -1,7 +1,7 @@
from web3 import AsyncHTTPProvider, Web3
from mev_inspect.retry import http_retry_with_backoff_request_middleware
from mev_inspect.geth_poa_middleware import geth_poa_middleware
from mev_inspect.retry import http_retry_with_backoff_request_middleware
from mev_inspect.utils import RPCType

View File

@ -1,4 +1,5 @@
from enum import Enum
from hexbytes._utils import hexstr_to_bytes