diff options
author | 2020-10-20 15:08:45 +0800 | |
---|---|---|
committer | 2020-10-20 15:08:45 +0800 | |
commit | acb6d737736409d0659aa474b44b7389f1915f34 (patch) | |
tree | a0774f09e1fab1482e4aaf4e9b31b71eb6253683 | |
parent | Improve default argument. (diff) |
Make `additional_info` non-optional.
The `Optional` typehint suggests allowing None as a value, which does not
make sense as a message in the logs.
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 5c3e445f6..dd19195bf 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -83,7 +83,7 @@ class InfractionScheduler: user: UserSnowflake, action_coro: t.Optional[t.Awaitable] = None, user_reason: t.Optional[str] = None, - additional_info: t.Optional[str] = "", + additional_info: str = "", ) -> bool: """ Apply an infraction to the user, log the infraction, and optionally notify the user. |