From 6f2ee5c61451fde9602b695dfdef47d2eda42424 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Sat, 1 Feb 2025 13:37:24 +0100 Subject: [PATCH] Removed abc as the importer class is used directly sometimes... --- beets/importer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index dfc802a38..e72aac514 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -178,7 +178,7 @@ class ImportState: state.taghistory.add(tuple(paths)) -class ImportSession(ABC): +class ImportSession: """Controls an import action. Subclasses should implement methods to communicate with the user or otherwise make decisions. """ @@ -310,19 +310,15 @@ class ImportSession(ABC): elif task.choice_flag is action.SKIP: self.tag_log("skip", paths) - @abstractmethod def should_resume(self, path): raise NotImplementedError("Inheriting class must implement `should_resume`") - @abstractmethod def choose_match(self, task): raise NotImplementedError("Inheriting class must implement `choose_match`") - @abstractmethod def resolve_duplicate(self, task, found_duplicates): raise NotImplementedError("Inheriting class must implement `resolve_duplicate`") - @abstractmethod def choose_item(self, task): raise NotImplementedError("Inheriting class must implement `choose_item`")