diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-14 04:41:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-14 04:41:39 +0300 |
commit | 74cbe6d52cf4ee76ded092e7c6d828b9bfabbf77 (patch) | |
tree | e6bba6111edb421a70c462b8fcc9063af7123fb2 /build_files | |
parent | e45a57656ce2d934a38a9c90c131ca31e84a1623 (diff) |
Cleanup: resolve type hinting error with make_source_archive
Diffstat (limited to 'build_files')
-rwxr-xr-x | build_files/utils/make_source_archive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build_files/utils/make_source_archive.py b/build_files/utils/make_source_archive.py index f9f3f59849f..2ef6dccd5be 100755 --- a/build_files/utils/make_source_archive.py +++ b/build_files/utils/make_source_archive.py @@ -6,7 +6,7 @@ import os import re import subprocess from pathlib import Path -from typing import Iterable, TextIO, Optional, Any +from typing import Iterable, TextIO, Optional, Any, Union # This script can run from any location, # output is created in the $CWD @@ -264,7 +264,7 @@ def git_ls_files(directory: Path = Path(".")) -> Iterable[Path]: yield path -def git_command(*cli_args) -> Iterable[str]: +def git_command(*cli_args: Union[bytes, str, Path] ) -> Iterable[str]: """Generator, yields lines of output from a Git command.""" command = ("git", *cli_args) |