From e8ccfbb80a302c9b39d1364c4592b99ddb5ff0a1 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 13 Apr 2024 21:04:09 -0400 Subject: [PATCH] add typing to unshorten_twitter --- server/src/unshorteners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/unshorteners.py b/server/src/unshorteners.py index dea5a6a..942884a 100644 --- a/server/src/unshorteners.py +++ b/server/src/unshorteners.py @@ -3,7 +3,7 @@ import re import requests -def unshorten_twitter(url): +def unshorten_twitter(url: str): """Retrieve the actual URL behind a Twitter URL.""" pattern = re.compile(r"(.*?)<\/title>")