模块 nonebot_plugin_marshoai.plugin.models
class PluginMetadata(BaseModel)
attr name: str = NO_DEFAULT
attr description: str = ''
attr usage: str = ''
attr author: str = ''
attr homepage: str = ''
attr extra: dict[str, Any] = {}
class Plugin(BaseModel)
func hash self => int
源代码 或 在GitHub上查看
python
def __hash__(self) -> int:
return hash(self.name)
func self == other: Any => bool
源代码 或 在GitHub上查看
python
def __eq__(self, other: Any) -> bool:
return self.name == other.name