diff options
author | 2019-09-15 14:29:08 +0200 | |
---|---|---|
committer | 2019-09-15 14:29:08 +0200 | |
commit | bf9a6c250eb28dd64e8b449a9641f09c9b5bd2d7 (patch) | |
tree | 175d44e7476a679dab9d6c377da6af76d234614d | |
parent | Validate bot.cogs.antispam configuration on CI. (diff) |
Typehint the result of `validate_config`.
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
-rw-r--r-- | bot/cogs/antispam.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/antispam.py b/bot/cogs/antispam.py index 482965b9b..e980de364 100644 --- a/bot/cogs/antispam.py +++ b/bot/cogs/antispam.py @@ -246,7 +246,7 @@ class AntiSpam: await deletion_context.upload_messages(self.bot.user.id, self.mod_log) -def validate_config(rules: Mapping = AntiSpamConfig.rules) -> dict: +def validate_config(rules: Mapping = AntiSpamConfig.rules) -> Dict[str, str]: """Validates the antispam configs.""" validation_errors = {} for name, config in rules.items(): |