fix(emojiinfo): pylint fixes

This commit is contained in:
Seaswimmer 2024-05-08 16:06:22 -04:00
parent e59503829f
commit e1bfa79cb9
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -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():