From d5f6cbe73a25741a9dc828d76d2406b306314981 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 16 May 2022 20:49:01 -0700 Subject: [PATCH] Clean up some pylint warnings in messages.py Add a module doc string Remove an extraneous else: --- erynrl/messages.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/erynrl/messages.py b/erynrl/messages.py index 9678473..3606462 100644 --- a/erynrl/messages.py +++ b/erynrl/messages.py @@ -1,5 +1,11 @@ # Eryn Wells +''' +Defines the classes the support the in-game message log. Messages are recorded to the log as game actions are handled. A +short buffer of messages is displayed in the game's HUD, and a full list of messages can be viewed by the player at any +time. +''' + import textwrap from typing import List, Optional, Reversible, Tuple @@ -30,8 +36,7 @@ class Message: '''The full text of the message, including a count of repeats, if present''' if self.count == 1: return self.text - else: - return f'{self.text} (x{self.count})' + return f'{self.text} (x{self.count})' def __str__(self) -> str: return self.text