Skip to content

Commit

Permalink
Fix ruff and mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch committed May 2, 2024
1 parent 07d38b2 commit db8f3ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions guppylang/hugr_builder/hugr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from hugr.serialization import SerialHugr, ops, tys
from hugr.serialization import serial_hugr as raw
from hugr.serialization.ops import OpType
from typing_extensions import assert_never

from guppylang.tys.subst import Inst
from guppylang.tys.ty import (
Expand Down Expand Up @@ -116,8 +115,7 @@ def in_port(self, offset: PortOffset | None) -> InPort:
def out_port(self, offset: PortOffset | None) -> OutPort:
"""Returns the output port at the given offset."""

@abstractmethod
def update_op(self) -> None:
def update_op(self) -> None: # noqa: B027
"""Updates the op type associated with this node with additional information.
This should be called before serialisation.
Expand Down Expand Up @@ -865,4 +863,3 @@ def to_raw(self) -> SerialHugr:
def serialize(self) -> str:
"""Serialize this Hugr in JSON format."""
return self.to_raw().to_json()

0 comments on commit db8f3ad

Please sign in to comment.