From 1fd4dfc86e03e85f1f2d8c5ce898c913c832f6ad Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Fri, 22 Dec 2017 21:41:17 -0800 Subject: [PATCH] bot testing: Amend StubBotHandler.get_config_info to return {}. This ensures the return type matches the annotated type, which matches the return type of ExternalBotHandler. --- zulip_bots/zulip_bots/test_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/test_lib.py b/zulip_bots/zulip_bots/test_lib.py index 64b77f4..463243f 100755 --- a/zulip_bots/zulip_bots/test_lib.py +++ b/zulip_bots/zulip_bots/test_lib.py @@ -54,7 +54,7 @@ class StubBotHandler: def get_config_info(self, bot_name, optional=False): # type: (str, bool) -> Dict[str, Any] - return None + return {} def unique_reply(self): # type: () -> Dict[str, Any]