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