From 64a45417d93fe9abcca29ff1c64d46e019c2456d Mon Sep 17 00:00:00 2001 From: camenduru <54370274+camenduru@users.noreply.github.com> Date: Fri, 18 Aug 2023 09:04:42 +0300 Subject: [PATCH] Python v3.9 (#189) --- modules/model_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/model_loader.py b/modules/model_loader.py index 85210ca7..3cf0bc94 100644 --- a/modules/model_loader.py +++ b/modules/model_loader.py @@ -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.