Skip to content

Commit

Permalink
add type ignore override comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jun 28, 2024
1 parent 22f5f91 commit 68c5e8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugr-py/src/hugr/val.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __init__(self, *vals: Value):
tag=0, typ=tys.Tuple(*(v.type_() for v in val_list)), vals=val_list
)

# sops.TupleValue isn't an instance of sops.SumValue
# so mypy doesn't like the override of Sum.to_serial
def to_serial(self) -> sops.TupleValue: # type: ignore[override]
return sops.TupleValue(
vs=ser_it(self.vals),
Expand Down

0 comments on commit 68c5e8b

Please sign in to comment.