mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-30 12:22:58 +00:00
🐛 add missing classmethod decorator
This commit is contained in:
@@ -40,6 +40,7 @@ class STFTBackend(str, Enum):
|
||||
TENSORFLOW: str = 'tensorflow'
|
||||
LIBROSA: str = 'librosa'
|
||||
|
||||
@classmethod
|
||||
def resolve(cls: type, backend: str) -> str:
|
||||
if backend not in cls.__members__.items():
|
||||
raise ValueError(f'Unsupported backend {backend}')
|
||||
|
||||
Reference in New Issue
Block a user