mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +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
@@ -3,6 +3,7 @@ from typing import Callable, Dict, List, Tuple
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
from returns.curry import partial
|
||||
from typing_extensions import override
|
||||
|
||||
from zerver.decorator import return_success_on_head_request, webhook_view
|
||||
from zerver.lib.exceptions import UnsupportedWebhookEventTypeError
|
||||
@@ -73,6 +74,7 @@ class MLStripper(HTMLParser):
|
||||
self.convert_charrefs = True
|
||||
self.fed: List[str] = []
|
||||
|
||||
@override
|
||||
def handle_data(self, d: str) -> None:
|
||||
self.fed.append(d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user