This commit is contained in:
Kovid Goyal 2026-01-05 21:23:46 +05:30
parent 2153e684d5
commit 6ce194ecc2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -23,7 +23,7 @@ def setenv(key, val):
os.environ[key] = os.path.expandvars(val)
def download_with_retry(url: str | Request, count: int = 5) -> bytes:
def download_with_retry(url: 'str | Request', count: int = 5) -> bytes:
for i in range(count):
try:
print('Downloading', getattr(url, 'full_url', url), flush=True)