Modernize legacy Python 2 syntax with pyupgrade.
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by manual indentation fixes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
543eb396b9
commit
e30b3b094b
107 changed files with 192 additions and 244 deletions
|
@ -12,11 +12,11 @@ from zulip_botserver.input_parameters import parse_args
|
|||
|
||||
|
||||
class BotServerTests(BotServerTestCase):
|
||||
class MockMessageHandler(object):
|
||||
class MockMessageHandler:
|
||||
def handle_message(self, message: Dict[str, str], bot_handler: Any) -> None:
|
||||
assert message == {'key': "test message"}
|
||||
|
||||
class MockLibModule(object):
|
||||
class MockLibModule:
|
||||
def handler_class(self) -> Any:
|
||||
return BotServerTests.MockMessageHandler()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue