mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +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,11 +1,14 @@
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
from zerver.lib.url_preview.types import UrlEmbedData
|
||||
|
||||
from .base import BaseParser
|
||||
|
||||
|
||||
class OpenGraphParser(BaseParser):
|
||||
@override
|
||||
def extract_data(self) -> UrlEmbedData:
|
||||
meta = self._soup.findAll("meta")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user