From 5a59eb1d4eadaa425acf0cb527d51fda4bfc2b61 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 20 Mar 2021 21:06:26 +0100 Subject: [PATCH] fix: unify log_message signature --- poezio/tabs/basetabs.py | 2 +- 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