Skip to content

Commit

Permalink
lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragunath1729 committed Nov 11, 2024
1 parent 3a8f66d commit 3ef64a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lambeq/backend/drawing/drawable.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,8 @@ def _add_box(
off: int,
x_pos: float,
y_pos: float,
input_nouns: list[str] = None
) -> tuple[list[int], int, list[str]]:
input_nouns: list[int] = None
) -> tuple[list[int], int, list[int]]:
"""Add a box to the graph, creating necessary wire endpoints.
Returns
Expand Down Expand Up @@ -957,7 +957,6 @@ def _add_box(
return (scan[:off] + scan_insert + scan[off + len(box.dom):],
box_ind, input_nouns)


def _make_space_for_frame(self,
scan: list[int],
off: int,
Expand Down
2 changes: 1 addition & 1 deletion lambeq/backend/drawing/tikz_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def draw_wire(self,
color_id: int = 0,
**params) -> None:

color = self._get_wire_color(color_id, **params)
# color = self._get_wire_color(color_id, **params)
out = (-90 if not bend_out or source[0] == target[0]
else (180 if source[0] > target[0] else 0))
inp = (90 if not bend_in or source[0] == target[0]
Expand Down

0 comments on commit 3ef64a5

Please sign in to comment.