Home
last modified time | relevance | path

Searched defs:PathOrStr (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_presubmit/py/pw_presubmit/
Dgit_repo.py25 PathOrStr = Union[Path, str] variable
28 def git_stdout(*args: PathOrStr,
30 repo: PathOrStr = '.') -> str:
37 def _ls_files(args: Collection[PathOrStr], repo: Path) -> Iterable[Path]:
44 def _diff_names(commit: str, pathspecs: Collection[PathOrStr],
59 pathspecs: Collection[PathOrStr] = (),
98 pathspecs: Collection[PathOrStr],
118 pathspecs: Collection[PathOrStr],
133 def root(repo_path: PathOrStr = '.', *, show_stderr: bool = True) -> Path:
151 def within_repo(repo_path: PathOrStr = '.') -> Optional[Path]:
[all …]
/external/pigweed/pw_protobuf_compiler/py/pw_protobuf_compiler/
Dpython_protos.py30 PathOrStr = Union[Path, str] variable
34 output_dir: PathOrStr,
35 proto_files: Iterable[PathOrStr],
36 includes: Iterable[PathOrStr] = ()) -> None:
75 def import_modules(directory: PathOrStr) -> Iterator:
90 def compile_and_import(proto_files: Iterable[PathOrStr],
91 includes: Iterable[PathOrStr] = (),
92 output_dir: PathOrStr = None) -> Iterator:
114 def compile_and_import_file(proto_file: PathOrStr,
115 includes: Iterable[PathOrStr] = (),
[all …]
/external/pigweed/pw_package/py/pw_package/
Dgit_repo.py25 PathOrStr = Union[pathlib.Path, str] variable
28 def git_stdout(*args: PathOrStr,
30 repo: PathOrStr = '.') -> str:
37 def git(*args: PathOrStr,
38 repo: PathOrStr = '.') -> subprocess.CompletedProcess: