diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bea15aa..9690c10 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: language: system types: [python] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.770 + rev: v0.910 hooks: - id: 'mypy' additional_dependencies: diff --git a/mev_inspect/block.py b/mev_inspect/block.py index 77ae962..821f031 100644 --- a/mev_inspect/block.py +++ b/mev_inspect/block.py @@ -1,5 +1,5 @@ from pathlib import Path -from typing import List +from typing import Any, Dict, List from web3 import Web3 @@ -50,7 +50,7 @@ def fetch_block(w3, base_provider, block_number: int) -> Block: block_logs = w3.eth.get_logs({"blockHash": block_hash}) ## Get gas used by individual txs and store them too - txs_gas_data = {} + txs_gas_data: Dict[str, Dict[str, Any]] = {} for transaction in block_data["transactions"]: tx_hash = (transaction.hash).hex() diff --git a/requirements_dev.txt b/requirements_dev.txt index e3f61f9..86600ba 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,2 +1,3 @@ pre-commit==2.13.0 pylint==2.9.3 +mypy==0.910