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.
This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-22 21:41:17 -08:00 committed by showell
parent 9853d85fb7
commit 1fd4dfc86e

View file

@ -54,7 +54,7 @@ class StubBotHandler:
def get_config_info(self, bot_name, optional=False): def get_config_info(self, bot_name, optional=False):
# type: (str, bool) -> Dict[str, Any] # type: (str, bool) -> Dict[str, Any]
return None return {}
def unique_reply(self): def unique_reply(self):
# type: () -> Dict[str, Any] # type: () -> Dict[str, Any]