forked from Mirror/pmbootstrap
pmb: Add lots of type hints (MR 2464)
This commit is contained in:
parent
d05d57b37e
commit
225d8b30a0
71 changed files with 566 additions and 325 deletions
|
@ -4,6 +4,7 @@ import os
|
|||
from pathlib import Path, PurePath
|
||||
import pmb.helpers
|
||||
from pmb.core import Chroot
|
||||
from pmb.types import PathString
|
||||
import pmb.helpers.run
|
||||
|
||||
|
||||
|
@ -24,7 +25,7 @@ def ismount(folder: Path) -> bool:
|
|||
|
||||
|
||||
def bind(
|
||||
source: Path, destination: Path, create_folders: bool = True, umount: bool = False
|
||||
source: PathString, destination: Path, create_folders: bool = True, umount: bool = False
|
||||
) -> None:
|
||||
"""Mount --bind a folder and create necessary directory structure.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue