diff options
| author | 2020-09-22 15:07:00 -0700 | |
|---|---|---|
| committer | 2020-09-22 15:07:00 -0700 | |
| commit | 24e58e302f1e3eaa7518183b9747c78e4a7f8f3d (patch) | |
| tree | 6950d9cb9f975f2c2d586774930e31fadf320c33 | |
| parent | Merge branch 'master' into feat/frontend/533/mod-log-names (diff) | |
Fix type annotation for expanded infractions
The `_utils.Infraction` alias does not cover nested data structures.
Therefore, it's inappropriate for expanded infraction API responses.
| -rw-r--r-- | bot/exts/moderation/infraction/management.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index 622262c9b..0f3ea4bb1 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -11,7 +11,6 @@ from discord.utils import escape_markdown from bot import constants from bot.bot import Bot from bot.converters import Expiry, Snowflake, UserMention, allowed_strings, proxy_user -from bot.exts.moderation.infraction import _utils from bot.exts.moderation.infraction.infractions import Infractions from bot.exts.moderation.modlog import ModLog from bot.pagination import LinePaginator @@ -217,7 +216,7 @@ class ModManagement(commands.Cog): self, ctx: Context, embed: discord.Embed, - infractions: t.Iterable[_utils.Infraction] + infractions: t.Iterable[t.Dict[str, t.Any]] ) -> None: """Send a paginated embed of infractions for the specified user.""" if not infractions: |