diff --git a/charachorder/device.py b/charachorder/device.py index eab1db1..c244ea9 100644 --- a/charachorder/device.py +++ b/charachorder/device.py @@ -147,7 +147,7 @@ def populate_chordmaps( limit: int | None = None, manual_interrupt: Callable[[], bool] = lambda: False, timeout: float | None = None, - ) -> None: + ) -> tuple[list[tuple[Chord, ChordPhrase]], bool]: chordmaps = [] interrupted = False start_time = time.time() @@ -165,6 +165,7 @@ def populate_chordmaps( if not interrupted: self.chordmaps = chordmaps + return chordmaps, interrupted def get_chord_phrase(self, chord: str) -> ChordPhrase | None: phrase = self.execute("CML", "C2", chord)[0]