diff --git a/github_scripts/get_git_sources.py b/github_scripts/get_git_sources.py index f467ed8..08efaa0 100644 --- a/github_scripts/get_git_sources.py +++ b/github_scripts/get_git_sources.py @@ -10,7 +10,7 @@ import re import subprocess from datetime import datetime -from typing import Optional +from typing import Optional, Union from pathlib import Path from shutil import rmtree import shlex @@ -88,7 +88,7 @@ def datetime_str() -> str: def clone_and_merge( - dependency: str, opts: list | dict, loc: Path, use_mirrors: bool, mirror_loc: Path + dependency: str, opts: Union[list, dict], loc: Path, use_mirrors: bool, mirror_loc: Path ) -> None: """ Wrapper script for calling get_source and merge_source for a single dependency