Skip to content

Commit

Permalink
[ExtendedModLog] Fix typehints for Deque
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Mar 8, 2024
1 parent 3f29eba commit 0f040de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extendedmodlog/eventmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
from collections import deque
from enum import Enum
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union, cast
from typing import Any, Deque, Dict, List, Optional, Sequence, Tuple, Union, cast

import discord
from discord.ext import tasks
Expand Down Expand Up @@ -121,7 +121,7 @@ class EventMixin:
settings: Dict[int, Any]
_ban_cache: Dict[int, List[int]]
allowed_mentions: discord.AllowedMentions
audit_log: Dict[int, deque[discord.AuditLogEntry]]
audit_log: Dict[int, Deque[discord.AuditLogEntry]]

async def get_event_colour(
self, guild: discord.Guild, event_type: str, changed_object: Optional[discord.Role] = None
Expand Down
4 changes: 2 additions & 2 deletions extendedmodlog/extendedmodlog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections import deque
from typing import Dict, Union
from typing import Deque, Dict, Union

import discord
from red_commons.logging import getLogger
Expand Down Expand Up @@ -74,7 +74,7 @@ def __init__(self, bot):
self._ban_cache = {}
self.invite_links_loop.start()
self.allowed_mentions = discord.AllowedMentions(users=False, roles=False, everyone=False)
self.audit_log: Dict[int, deque[discord.AuditLogEntry]] = {}
self.audit_log: Dict[int, Deque[discord.AuditLogEntry]] = {}

def format_help_for_context(self, ctx: commands.Context):
"""
Expand Down

0 comments on commit 0f040de

Please sign in to comment.