Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Dec 27, 2024
1 parent 4181f0c commit 681df66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def sort_key(buffer: SortKeyT) -> tuple[int, SortKeyT]:
return (len(buffer), buffer)


def sort_key_ir(nodes: list[IRNode]) -> tuple[int, tuple[int]]:
def sort_key_ir(nodes: Sequence[IRNode]) -> tuple[int, tuple[int]]:
return (
len(nodes),
tuple(choice_to_index(node.value, node.kwargs) for node in nodes),
Expand Down

0 comments on commit 681df66

Please sign in to comment.