Skip to content

Commit

Permalink
fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jul 4, 2024
1 parent e166a2a commit 01ab524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zxlive/rewrite_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def do_rewrite(self, panel: ProofPanel) -> None:
panel.undo_stack.push(cmd, anim_before=anim_before, anim_after=anim_after)

# TODO: Narrow down the type of the first return value.
def apply_rewrite(self, g: GraphT, matches: list) -> tuple[Any, Optional[list[VT]]]:
def apply_rewrite(self, g: GraphT, matches: list) -> tuple[Any, list[VT]]:
if self.returns_new_graph:
return self.rule(g, matches), None
return self.rule(g, matches), []

etab, rem_verts, rem_edges, check_isolated_vertices = self.rule(g, matches)
g.remove_edges(rem_edges)
Expand Down

0 comments on commit 01ab524

Please sign in to comment.