Commit 23802f44 authored by Max Kellermann's avatar Max Kellermann

python/build/tarball: Python type hints

parent 3fedd978
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment