diff options
author | mathieui <mathieui@mathieui.net> | 2021-03-20 21:06:26 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-02 17:44:36 +0200 |
commit | 5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61 (patch) | |
tree | fe38ee6760f7c3d2b72fe6a8885c7dc23a1e17d9 | |
parent | 9bd3826fe746288431c4e6564cab53a1943e47f1 (diff) | |
download | poezio-5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61.tar.gz poezio-5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61.tar.bz2 poezio-5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61.tar.xz poezio-5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61.zip |
fix: unify log_message signature
-rw-r--r-- | poezio/tabs/basetabs.py | 2 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 564de62d..33592c79 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -585,7 +585,7 @@ class ChatTab(Tab): def general_jid(self) -> JID: raise NotImplementedError - def log_message(self, message: BaseMessage, typ=1): + def log_message(self, message: BaseMessage, typ: int = 1): """ Log the messages in the archives. """ diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 1991d70c..7fb6db11 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1072,7 +1072,7 @@ class MucTab(ChatTab): """ return self.topic.replace('\n', '|') - def log_message(self, msg: Message, typ: int = 1) -> None: + def log_message(self, msg: BaseMessage, typ: int = 1) -> None: """ Log the messages in the archives, if it needs to be |