Skip to content

Commit

Permalink
style: make ruff happy
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed Feb 2, 2024
1 parent 2c82a55 commit 44fc365
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,14 @@ def __len__(self) -> int:

def __str__(self) -> str:
"""Returns a string like "emoji-test.txt"."""
data = "\n".join(map(str, self.emojis))
return f"""
# Date: {self.date}
# Version: {self.version}
# Generator Version: {self.generator_revision}
""" + "\n".join(map(str, self.emojis)) + "\n#EOF\n"
{data}
# EOF
"""

@classmethod
def from_content(cls, content: str) -> EmojiDatabase:
Expand Down

0 comments on commit 44fc365

Please sign in to comment.