fix(emojiinfo): pylint fixes
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 44s

This commit is contained in:
Seaswimmer 2024-05-08 16:06:22 -04:00
parent e59503829f
commit e1bfa79cb9
Signed by: 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. 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) super().__init__(name=name, animated=animated, id=id)
self.group = group self.group = group
self.aliases = aliases self.aliases = aliases
@ -78,7 +78,7 @@ class PartialEmoji(discord.PartialEmoji):
return cls(name=name, animated=animated, id=emoji_id) return cls(name=name, animated=animated, id=emoji_id)
path: data_manager.Path = data_manager.bundled_data_path(coginstance) / "emojis.json" 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) emojis: dict = json.load(file)
emoji_aliases = [] emoji_aliases = []
for dict_name, group in emojis.items(): for dict_name, group in emojis.items():