From 44fc36549f8f20bffda26e4d5adc96eda6c607cb Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 2 Feb 2024 14:45:33 +0800 Subject: [PATCH] style: make ruff happy Signed-off-by: Jack Cherng --- plugin/emoji.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/emoji.py b/plugin/emoji.py index 9c0d863..b3818fb 100644 --- a/plugin/emoji.py +++ b/plugin/emoji.py @@ -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: