Skip to content

Commit

Permalink
Use .fields
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Sep 14, 2023
1 parent 8cd81d9 commit ecdea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magma/tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def wire(self, o, debug_info):
return

for i, k in enumerate(self.keys()):
if not type(self)[i].is_wireable(type(o)[i]):
if not type(self).fields[i].is_wireable(type(o).fields[i]):
_logger.error(
WiringLog(f"Cannot wire {{}} (type={type(o)}, to "
f" {{}} (type={type(self)})"
Expand Down

0 comments on commit ecdea05

Please sign in to comment.