add typing to unshorten_twitter
This commit is contained in:
parent
4296afee69
commit
e8ccfbb80a
@ -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>")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user