Python v3.9 (#189)

This commit is contained in:
camenduru 2023-08-18 09:04:42 +03:00 committed by GitHub
parent 814aac94aa
commit 64a45417d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
import os
from urllib.parse import urlparse
from typing import Optional
def load_file_from_url(
url: str,
*,
model_dir: str,
progress: bool = True,
file_name: str | None = None,
file_name: Optional[str] = None,
) -> str:
"""Download a file from `url` into `model_dir`, using the file present if possible.