python/build/tarball: Python type hints
This commit is contained in:
parent
3fedd978a2
commit
23802f4489
|
@ -1,6 +1,7 @@
|
||||||
import os, shutil, subprocess
|
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)
|
path = os.path.join(parent_path, base)
|
||||||
if lazy and os.path.isdir(path):
|
if lazy and os.path.isdir(path):
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Reference in New Issue