python/build/tarball: Python type hints

This commit is contained in:
Max Kellermann 2023-09-26 14:28:22 +02:00
parent 3fedd978a2
commit 23802f4489
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import os, shutil, subprocess
def untar(tarball_path, parent_path, base, lazy=False):
def untar(tarball_path: str, parent_path: str, base: str,
lazy: bool=False) -> str:
path = os.path.join(parent_path, base)
if lazy and os.path.isdir(path):
return path