mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
mypy: Enable new error explicit-override.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
d257002ad8
commit
a50eb2e809
@@ -1,5 +1,7 @@
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
|
||||
class FormattedError(Exception):
|
||||
pass
|
||||
@@ -9,6 +11,7 @@ class TemplateParserError(Exception):
|
||||
def __init__(self, message: str) -> None:
|
||||
self.message = message
|
||||
|
||||
@override
|
||||
def __str__(self) -> str:
|
||||
return self.message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user