From 562fe610b7bcca964059cb58d4a2bce33a8132f3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 18 Apr 2020 16:55:31 -0700 Subject: [PATCH] cleanup: Fix whitespace around function annotation arrows. Signed-off-by: Anders Kaseorg --- zulip_bots/zulip_bots/bots/baremetrics/test_baremetrics.py | 2 +- .../zulip_bots/bots/link_shortener/test_link_shortener.py | 2 +- zulip_bots/zulip_bots/bots/merels/merels.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/baremetrics/test_baremetrics.py b/zulip_bots/zulip_bots/bots/baremetrics/test_baremetrics.py index 0aad62b..15b231d 100644 --- a/zulip_bots/zulip_bots/bots/baremetrics/test_baremetrics.py +++ b/zulip_bots/zulip_bots/bots/baremetrics/test_baremetrics.py @@ -74,7 +74,7 @@ class TestBaremetricsBot(BotTestCase, DefaultTests): with self.mock_http_conversation('list_subscriptions'): self.verify_reply('list-subscriptions TEST', r) - def test_exception_when_api_key_is_invalid(self)-> None: + def test_exception_when_api_key_is_invalid(self) -> None: bot_test_instance = BaremetricsHandler() with self.mock_config_info({'api_key': 'TEST'}): diff --git a/zulip_bots/zulip_bots/bots/link_shortener/test_link_shortener.py b/zulip_bots/zulip_bots/bots/link_shortener/test_link_shortener.py index e078fdb..ee00ab4 100644 --- a/zulip_bots/zulip_bots/bots/link_shortener/test_link_shortener.py +++ b/zulip_bots/zulip_bots/bots/link_shortener/test_link_shortener.py @@ -44,7 +44,7 @@ class TestLinkShortenerBot(BotTestCase, DefaultTests): ('Mention the link shortener bot in a conversation and then ' 'enter any URLs you want to shorten in the body of the message.')) - def test_exception_when_api_key_is_invalid(self)-> None: + def test_exception_when_api_key_is_invalid(self) -> None: bot_test_instance = LinkShortenerHandler() with self.mock_config_info({'key': 'qwertyuiopx'}): with self.mock_http_conversation('test_invalid_access_token'): diff --git a/zulip_bots/zulip_bots/bots/merels/merels.py b/zulip_bots/zulip_bots/bots/merels/merels.py index 9e723c8..941f481 100644 --- a/zulip_bots/zulip_bots/bots/merels/merels.py +++ b/zulip_bots/zulip_bots/bots/merels/merels.py @@ -32,7 +32,7 @@ class MerelsModel: return 'current turn' return '' - def contains_winning_move(self, board: Any) ->bool: + def contains_winning_move(self, board: Any) -> bool: merels = database.MerelsStorage(self.topic, self.storage) data = game_data.GameData(merels.get_game_data(self.topic))