From 9ab0d250f4c1a7c9d525518076973c8f42bf8a70 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 20 Mar 2021 21:01:09 +0100 Subject: fix: uniformize command_say signature --- poezio/tabs/basetabs.py | 4 ++-- poezio/tabs/conversationtab.py | 2 +- poezio/tabs/muctab.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'poezio') diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index fee54adb..564de62d 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -808,7 +808,7 @@ class ChatTab(Tab): self.state = 'scrolled' @command_args_parser.raw - def command_say(self, line, correct=False): + def command_say(self, line: str, attention: bool = False, correct: bool = False): pass def goto_build_lines(self, new_date): @@ -1063,7 +1063,7 @@ class OneToOneTab(ChatTab): msg.send() @command_args_parser.raw - def command_say(self, line, correct=False, attention=False): + def command_say(self, line: str, attention: bool = False, correct: bool = False): pass @command_args_parser.ignored diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 522e1d4d..2c0d9429 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -104,7 +104,7 @@ class ConversationTab(OneToOneTab): @refresh_wrapper.always @command_args_parser.raw - def command_say(self, line, attention=False, correct=False): + def command_say(self, line: str, attention: bool = False, correct: bool = False): msg = self.core.xmpp.make_message( mto=self.get_dest_jid(), mfrom=self.core.xmpp.boundjid diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index b6360e92..1991d70c 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1709,7 +1709,7 @@ class MucTab(ChatTab): return None @command_args_parser.raw - def command_say(self, line: str, correct: bool = False) -> None: + def command_say(self, line: str, attention: bool = False, correct: bool = False): """ /say Or normal input + enter -- cgit v1.2.3