add typing to unshorten_twitter

This commit is contained in:
agatha 2024-04-13 21:04:09 -04:00
parent 4296afee69
commit e8ccfbb80a

View File

@ -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>(.*?)<\/title>")