utils: type-hint mount helpers
This commit is contained in:
parent
97bfc541c5
commit
95c2ffd133
1 changed files with 2 additions and 2 deletions
4
utils.py
4
utils.py
|
@ -28,7 +28,7 @@ def programs_available(programs: Union[str, Sequence[str]], lazy: bool = True) -
|
|||
return True
|
||||
|
||||
|
||||
def umount(dest: str, lazy=False):
|
||||
def umount(dest: str, lazy=False) -> subprocess.CompletedProcess:
|
||||
return run_root_cmd(
|
||||
[
|
||||
'umount',
|
||||
|
@ -59,7 +59,7 @@ def mount(src: str, dest: str, options: list[str] = ['bind'], fs_type: Optional[
|
|||
return result
|
||||
|
||||
|
||||
def check_findmnt(path: str):
|
||||
def check_findmnt(path: str) -> subprocess.CompletedProcess:
|
||||
result = run_root_cmd(
|
||||
[
|
||||
'findmnt',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue