From ba5ff9b38c1a2165a4e810d69d4b49281708d386 Mon Sep 17 00:00:00 2001 From: tek Date: Mon, 18 Jul 2022 14:25:01 +0200 Subject: [PATCH] Fixes a minor typing bug --- mvt/common/url.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mvt/common/url.py b/mvt/common/url.py index 2e93c4e..612212a 100644 --- a/mvt/common/url.py +++ b/mvt/common/url.py @@ -4,6 +4,7 @@ # https://license.mvt.re/1.1/ import requests +from typing import Optional from tld import get_tld SHORTENER_DOMAINS = [ @@ -308,7 +309,7 @@ class URL: return self.is_shortened - def unshorten(self) -> None: + def unshorten(self) -> Optional[str]: """Unshorten the URL by requesting an HTTP HEAD response.""" res = requests.head(self.url) if str(res.status_code).startswith("30"):