提交 96901a83 编写于 作者: F Faylixe

🐛 add missing classmethod decorator

上级 c96897df
......@@ -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}')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册