Skip to content

Commit

Permalink
[SNOW-1039218] refactor: change union typing for version support
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mchok committed Mar 9, 2024
1 parent 6e8aa60 commit eb1c588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snowflake/cli/plugins/nativeapp/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path
from sys import stdin, stdout
from typing import Optional
from typing import Optional, Union

from git import PathLike, Repo

Expand Down Expand Up @@ -39,7 +39,7 @@ def get_first_paragraph_from_markdown_file(file_path: Path) -> Optional[str]:
return paragraph_text


def shallow_git_clone(url: str | PathLike, to_path: str | PathLike) -> Repo:
def shallow_git_clone(url: Union[str, PathLike], to_path: Union[str, PathLike]) -> Repo:
"""
Performs a shallow clone of the repository at the provided url to the path specified
Expand Down

0 comments on commit eb1c588

Please sign in to comment.