mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 11:00:54 +00:00
✅ add require tests
This commit is contained in:
@ -98,7 +98,7 @@ class PluginManager:
|
||||
|
||||
return third_party_plugins | set(self.searched_plugins.keys())
|
||||
|
||||
def load_plugin(self, name) -> Optional[Plugin]:
|
||||
def load_plugin(self, name: str) -> Optional[Plugin]:
|
||||
try:
|
||||
if name in self.plugins:
|
||||
module = importlib.import_module(name)
|
||||
|
Reference in New Issue
Block a user