From 668af8b6f96b95ab5130ef6d6965c2d71542edf6 Mon Sep 17 00:00:00 2001 From: rht Date: Mon, 14 Aug 2017 18:37:38 +0200 Subject: [PATCH] mypy: Annotate zerver/lib/exceptions.py. --- zerver/lib/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.py index 46b962c6ab..ceb1ca4d6f 100644 --- a/zerver/lib/exceptions.py +++ b/zerver/lib/exceptions.py @@ -70,10 +70,12 @@ class JsonableError(Exception): data_fields = ['widget_name'] def __init__(self, widget_name): + # type: (str) -> None self.widget_name = widget_name # type: str @staticmethod def msg_format(): + # type: () -> str return _("No such widget: {widget_name}") raise NoSuchWidgetError(widget_name)