mirror of https://github.com/zulip/zulip.git
mypy: Annotate zerver/lib/exceptions.py.
This commit is contained in:
parent
ea5fef45b5
commit
668af8b6f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue