From 74cbe6d52cf4ee76ded092e7c6d828b9bfabbf77 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 14 Apr 2021 11:41:39 +1000 Subject: Cleanup: resolve type hinting error with make_source_archive --- build_files/utils/make_source_archive.py | 4 ++-- 1 file 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) -- cgit v1.2.3