mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-08-02 00:14:28 +00:00
和过去的自己斗智斗勇,想知道为什么用球坐标系来表示声像方位吗?
This commit is contained in:
@@ -342,6 +342,9 @@ class SingleNote:
|
|||||||
# def __list__(self) -> List[int]:
|
# def __list__(self) -> List[int]:
|
||||||
# 我不认为这个类应当被作为列表使用
|
# 我不认为这个类应当被作为列表使用
|
||||||
|
|
||||||
|
def __bool__(self) -> bool:
|
||||||
|
return bool(self.volume)
|
||||||
|
|
||||||
def __tuple__(
|
def __tuple__(
|
||||||
self,
|
self,
|
||||||
) -> Tuple[int, int, int, int, int]:
|
) -> Tuple[int, int, int, int, int]:
|
||||||
|
|||||||
@@ -133,7 +133,9 @@ def load_plugin_from_module(package: Union[Path, str]):
|
|||||||
else:
|
else:
|
||||||
return importlib.import_module(package)
|
return importlib.import_module(package)
|
||||||
except ModuleNotFoundError as e:
|
except ModuleNotFoundError as e:
|
||||||
raise PluginNotFoundError("无法找到名为`{}`的插件包".format(package)) from e
|
raise PluginNotFoundError(
|
||||||
|
"无法找到名为`{}`的插件包,或该插件包的依赖未正确安装。".format(package)
|
||||||
|
) from e
|
||||||
|
|
||||||
|
|
||||||
class PluginRegistry:
|
class PluginRegistry:
|
||||||
|
|||||||
Reference in New Issue
Block a user