refactor: Convert the 'wildcards' list to a frozenset.

This commit converts the 'wildcards' list to a frozenset,
as we never intend to mutate 'wildcards'.
This commit is contained in:
Prakhar Pratyush 2023-05-30 03:19:56 +05:30 committed by Tim Abbott
parent d0c1668399
commit 0ea999b348
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ USER_GROUP_MENTIONS_RE = re.compile(
rf"{BEFORE_MENTION_ALLOWED_REGEX}@(?P<silent>_?)(\*(?P<match>[^\*]+)\*)" rf"{BEFORE_MENTION_ALLOWED_REGEX}@(?P<silent>_?)(\*(?P<match>[^\*]+)\*)"
) )
wildcards = ["all", "everyone", "stream"] wildcards = frozenset(["all", "everyone", "stream"])
@dataclass @dataclass