From e1bfa79cb938d124ed656c93b88cc93c5d930b87 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 8 May 2024 16:06:22 -0400 Subject: [PATCH] fix(emojiinfo): pylint fixes --- emojiinfo/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emojiinfo/model.py b/emojiinfo/model.py index b3c3449..af457d1 100644 --- a/emojiinfo/model.py +++ b/emojiinfo/model.py @@ -39,7 +39,7 @@ class PartialEmoji(discord.PartialEmoji): The group name of the emoji if it is a native emoji. """ - def __init__(self, *, name: str, animated: bool = False, id: int | None = None, group: str | None = None, aliases: list | None = None) -> None: + def __init__(self, *, name: str, animated: bool = False, id: int | None = None, group: str | None = None, aliases: list | None = None) -> None: # pylint: disable=redefined-builtin super().__init__(name=name, animated=animated, id=id) self.group = group self.aliases = aliases @@ -78,7 +78,7 @@ class PartialEmoji(discord.PartialEmoji): return cls(name=name, animated=animated, id=emoji_id) path: data_manager.Path = data_manager.bundled_data_path(coginstance) / "emojis.json" - with open(path, "r") as file: + with open(path, "r", encoding="UTF-8") as file: emojis: dict = json.load(file) emoji_aliases = [] for dict_name, group in emojis.items():