Files
odoo-stubs/odoo-stubs/tools/osutil.pyi
Trinh Anh Ngoc b83ce3c76f Update stubs
2022-11-05 14:26:47 +07:00

15 lines
647 B
Python

import ctypes
from typing import Any, BinaryIO, Callable, Generator, Iterable, Iterator
def listdir(dir: str, recursive: bool = ...) -> Iterable[str]: ...
def walksymlinks(top: str, topdown: bool = ..., onerror: Callable[[OSError], Any] | None = ...) -> Iterator[tuple[str, list[str], list[str]]]: ...
def tempdir() -> Generator[str, None, None]: ...
def zip_dir(path: str, stream: str | BinaryIO, include_dir: bool = ..., fnct_sort: Callable | None = ...) -> None: ...
getppid: Callable[[], int]
is_running_as_nt_service: Callable[[], bool]
_TH32CS_SNAPPROCESS: int
class _PROCESSENTRY32(ctypes.Structure):
_fields_: list[tuple[str, Any]]