From 7d49ce13b1acd5a398376a7d69a4f3336bdfa289 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 16 Aug 2017 11:29:07 -0700 Subject: [PATCH] bugdown: Fix mypy error with empty return. --- zerver/lib/bugdown/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/bugdown/__init__.py b/zerver/lib/bugdown/__init__.py index c1a42161bc..be4c4c0b64 100644 --- a/zerver/lib/bugdown/__init__.py +++ b/zerver/lib/bugdown/__init__.py @@ -1113,7 +1113,7 @@ class UserMentionPattern(markdown.inlinepatterns.Pattern): name = match[2:-2] else: if not mention.user_mention_matches_wildcard(match): - return + return None name = match wildcard = mention.user_mention_matches_wildcard(name)