From 486f1d2f484882b99600d2349f2ef3b652fb738f Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Fri, 22 Dec 2017 11:15:08 -0800 Subject: [PATCH] mypy: Improve typing of zulip_bots/lib.py, to pass with strict-optional. --- zulip_bots/zulip_bots/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/lib.py b/zulip_bots/zulip_bots/lib.py index c2d2c11..b0f1393 100644 --- a/zulip_bots/zulip_bots/lib.py +++ b/zulip_bots/zulip_bots/lib.py @@ -215,7 +215,7 @@ class ExternalBotHandler(object): sys.exit(message) def extract_query_without_mention(message, client): - # type: (Dict[str, Any], ExternalBotHandler) -> str + # type: (Dict[str, Any], ExternalBotHandler) -> Optional[str] """ If the bot is the first @mention in the message, then this function returns the stripped message with the bot's @mention removed. Otherwise, it returns None.