From 2310c15d56c2af4094fca6b8627a3d715fa3d671 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Sun, 16 Oct 2022 23:39:54 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/tools/osutil.pyi | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/odoo-stubs/tools/osutil.pyi b/odoo-stubs/tools/osutil.pyi index 79a5d43..db61ab9 100644 --- a/odoo-stubs/tools/osutil.pyi +++ b/odoo-stubs/tools/osutil.pyi @@ -1,18 +1,10 @@ -import ctypes from re import Pattern -from typing import Any, BinaryIO, Callable, Generator, Iterable, Iterator +from typing import BinaryIO, Callable, Iterable WINDOWS_RESERVED: Pattern def clean_filename(name: str, replacement: str = ...) -> str: ... 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]]