Skip to content

Commit 9cfdd3f

Browse files
committed
Fixed mypy errors
1 parent 742a094 commit 9cfdd3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exasol/toolbox/util/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import subprocess # nosec
22
from functools import wraps
33
from pathlib import Path
4+
from typing import Union
45

56

67
def run_command(func):
@@ -26,7 +27,7 @@ def get_latest_tag():
2627

2728
@staticmethod
2829
@run_command
29-
def read_file_from_tag(tag: str, path: Path | str):
30+
def read_file_from_tag(tag: str, path: Union[Path,str]):
3031
"""
3132
Read the contents of the specified file `path` at the point in
3233
time specified by git tag `tag`.

0 commit comments

Comments
 (0)