aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-02-04 00:53:00 +1000
committerGravatar GitHub <[email protected]>2020-02-04 00:53:00 +1000
commit2dc728e2d43448c67d87aa32e12598e5068c4353 (patch)
tree67efa9072358ed508c5b76a5f63e5df5d8545a2b
parentChange typehint name for the attachment-log constant (diff)
Use a trailing underscore to avoid name conflicts.
Previously used a leading underscore, but that's usually meant for non-used names.
-rw-r--r--bot/cogs/antispam.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/antispam.py b/bot/cogs/antispam.py
index bbc1a5359..f67ef6f05 100644
--- a/bot/cogs/antispam.py
+++ b/bot/cogs/antispam.py
@@ -260,10 +260,10 @@ class AntiSpam(Cog):
await deletion_context.upload_messages(self.bot.user.id, self.mod_log)
-def validate_config(_rules: Mapping = AntiSpamConfig.rules) -> Dict[str, str]:
+def validate_config(rules_: Mapping = AntiSpamConfig.rules) -> Dict[str, str]:
"""Validates the antispam configs."""
validation_errors = {}
- for name, config in _rules.items():
+ for name, config in rules_.items():
if name not in RULE_FUNCTION_MAPPING:
log.error(
f"Unrecognized antispam rule `{name}`. "