We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742a094 commit 9cfdd3fCopy full SHA for 9cfdd3f
exasol/toolbox/util/git.py
@@ -1,6 +1,7 @@
1
import subprocess # nosec
2
from functools import wraps
3
from pathlib import Path
4
+from typing import Union
5
6
7
def run_command(func):
@@ -26,7 +27,7 @@ def get_latest_tag():
26
27
28
@staticmethod
29
@run_command
- def read_file_from_tag(tag: str, path: Path | str):
30
+ def read_file_from_tag(tag: str, path: Union[Path,str]):
31
"""
32
Read the contents of the specified file `path` at the point in
33
time specified by git tag `tag`.
0 commit comments