From 9c82b70998f2b4ccd95df5f035630630699c3f21 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 20:53:33 +0000 Subject: [PATCH] refactor: remove module level global statement The global statement is used to specify that the assignment to that name is an assignment to the variable in the global (module) scope, rather than in the local scope. At the module level, this statement is redundant because the local scope and global scope are the same. It is recommended to remove the `global` statement. --- src/plugins/waifu/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/waifu/__init__.py b/src/plugins/waifu/__init__.py index 2528ff0..0d41e22 100644 --- a/src/plugins/waifu/__init__.py +++ b/src/plugins/waifu/__init__.py @@ -260,7 +260,6 @@ async def check_divorce_rule(event): # 分手 if waifu_cd_bye > -1: - global cd_bye cd_bye = {} bye = on_command( "离婚",