[Bf-blender-cvs] [74cbe6d52cf] master: Cleanup: resolve type hinting error with make_source_archive

Campbell Barton noreply at git.blender.org
Wed Apr 14 03:59:51 CEST 2021


Commit: 74cbe6d52cf4ee76ded092e7c6d828b9bfabbf77
Author: Campbell Barton
Date:   Wed Apr 14 11:41:39 2021 +1000
Branches: master
https://developer.blender.org/rB74cbe6d52cf4ee76ded092e7c6d828b9bfabbf77

Cleanup: resolve type hinting error with make_source_archive

===================================================================

M	build_files/utils/make_source_archive.py

===================================================================

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)



More information about the Bf-blender-cvs mailing list