Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 9, 2025
1 parent 5273787 commit 417d0f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boa/contracts/abi/abi_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def method_id_map(self):
def event_for(self):
# [{"name": "Bar", "inputs":
# [{"name": "x", "type": "uint256", "indexed": false},
# {"name": "y", "type": "tuple", "components": [{"name": "x", "type": "uint256"}], "indexed": false}],
# {"name": "y", "type": "tuple", "components":
# [{"name": "x", "type": "uint256"}], "indexed": false}],
# "anonymous": false, "type": "event"},
# }]
ret = {}
Expand Down Expand Up @@ -550,7 +551,8 @@ def _parse_complex(abi: dict, value: Any, name=None) -> str:
components = abi["components"]
typname = name or abi["name"] or "user_struct"
component_names = [item["name"] for item in components]
typ = namedtuple(typname, component_names, rename=True)

typ = namedtuple(typname, component_names, rename=True) # type: ignore[misc]

def _leaf(tuple_vals):
components_parsed = [
Expand Down

0 comments on commit 417d0f0

Please sign in to comment.