Skip to content

Commit

Permalink
Update syntax to compatible with python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Oct 22, 2024
1 parent 0a42b92 commit 3543be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/get_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import glob
import urllib.request
from typing import List
from typing import List, Optional
from pathlib import Path
import json

Expand Down Expand Up @@ -86,7 +86,7 @@ def model_exists_in_package(model_name:str, model_arch:str, save_path:str=None,
return False


def get_model_path(model_name: str, model_dir: str) -> str | None:
def get_model_path(model_name: str, model_dir: str) -> Optional[str]:
"""Get model path if exists in the dir
Args:
Expand Down

0 comments on commit 3543be1

Please sign in to comment.