Draft prune function

This commit is contained in:
Jakob Moser 2025-05-21 13:42:50 +02:00
parent 58d3cf38e9
commit 8ee036e380
Signed by: jakob
GPG Key ID: 3EF2BA2851B3F53C

View File

@ -0,0 +1,12 @@
from collections.abc import Sequence
from karaokatalog.deduplicate.instructions.DeleteInstruction import DeleteInstruction
from karaokatalog.Song import Song
def prune(equivalent_songs: Sequence[Song]) -> Sequence[DeleteInstruction]:
"""
Prune a sequence of equivalent songs, by returning a sequence of instructions
that delete all but one song in this sequence.
"""
pass