From f0a8b47c067a1d493ce28a2eef0e0c932ce96600 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Mon, 22 Mar 2021 01:23:09 +0800 Subject: [PATCH] :hankey: remove __manager__ --- nonebot/plugin/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot/plugin/manager.py b/nonebot/plugin/manager.py index 07c47115..18b43cf8 100644 --- a/nonebot/plugin/manager.py +++ b/nonebot/plugin/manager.py @@ -208,7 +208,8 @@ class PluginLoader(SourceFileLoader): def exec_module(self, module: ModuleType) -> None: if self.loaded: return - setattr(module, "__manager__", self.manager) + # really need? + # setattr(module, "__manager__", self.manager) super().exec_module(module) if self._context_token: _current_plugin.reset(self._context_token)